Two-way binding of slider with a text box in Silverlight XAML

Declare slider:

<Slider x:Name="Myslider" Margin="3" 
 Minimum="1" Maximum="40" Value="10"> 
</Slider>

Declare textbox with twoway binding to slider:

<TextBox Text=" {Binding ElementName=Myslider, Path=Value, Mode=TwoWay}"> 
</TextBox>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.