Skip to main content

Microsoft Silverlight

Unanswered Question Slider Control with Tick LabelsRSS Feed

(3)

mwieder
mwieder

Member

Member

26 points

43 Posts

Slider Control with Tick Labels

 How can I create a slider control which displays a label at each major step along the axis?  I know the hack solution is just to create a separate row of textblocks, but that has issues of sizing and placement.  The specific example is a map slider that has 4 steps, each one corresponding to a different specific zoom level - state, county, city and street.

thanks in advance for the help!

elmobond
elmobond

Member

Member

4 points

2 Posts

Re: Slider Control with Tick Labels

Good question.  Telerik's RAD control suite has a slider control that seems to implement a lot of missing functionality from the out-of-box slider control has in Silverlight2.

I stumbled upon this thread in search of a similar solution.  Basically I think we will have to play with SL's content template to try and get tick marks to appear and function appropriately in SL's slider control.

Hope this helps someone else thinking that SL's slider has tick marks, snap to tick/hard-stops, etc. out of the box via properties...it doesn't.

lee_sl
lee_sl

Contributor

Contributor

2992 points

585 Posts

Re: Re: Slider Control with Tick Labels

you can find a sample in this post

http://leeontech.wordpress.com/2009/04/12/slider-with-ticks/

----------------------------------------------
Available for consulting in Dallas, TX
http://leeontech.wordpress.com/

elmobond
elmobond

Member

Member

4 points

2 Posts

Re: Re: Slider Control with Tick Labels

Cool Awesome, thanks!   

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities