Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Slider > Move slider position

Answered Move slider position

Feed from this thread
  • Ryan Black avatar

    Posted on Aug 16, 2010 (permalink)

    Hello,

    I would like to have the Slider thumb control move to the correct position when I set the value programmatically.  How would I go about doing this?

    Thanks
    Ryan Black

    Reply

  • Answer Tina Stancheva Tina Stancheva admin's avatar

    Posted on Aug 19, 2010 (permalink)

    Hello Ryan Black,

    You can data bind the Value property of the RadSlider using the TwoWay mode binding, like so:
    <teletik:RadSlider x:Name="mySlider"
                       Minimum="0"
                       Maximum="10"
                       Value="{Binding SliderPosition, Mode=TwoWay}"  />

    However, you should keep in mind that the class containing the SliderPosition property should implement INotifyProperyChanged interface in order to fully utilize the TwoWay mode binding.

    I prepared a sample project illustrating this approach. Please give it a try and let me know if it works for you.

    Kind regards,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Attached files

    Reply

  • Ryan Black avatar

    Posted on Aug 19, 2010 (permalink)

    That worked perfectly.  Thanks

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Slider > Move slider position
Related resources for "Move slider position"

WPF Slider Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]