Move slider position

3 posts, 1 answers
  1. Ryan Black
    Ryan Black avatar
    54 posts
    Member since:
    Mar 2010

    Posted 16 Aug 2010 Link to this post

    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
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 19 Aug 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ryan Black
    Ryan Black avatar
    54 posts
    Member since:
    Mar 2010

    Posted 19 Aug 2010 Link to this post

    That worked perfectly.  Thanks
Back to Top