Friday, December 9, 2011

WPF XAML example: Binding FontSize to a Slider

Code snippet

Code Snippet
  1. <TextBlock Text="Hi there." FontSize="{Binding ElementName=mySlider, Path=Value}" />
  2. <Slider Minimum="8" Maximum="32" x:Name="mySlider" Value="12" />


Result

1 comment: