Bind Label To ScrollBar : Bind to Label « Windows Presentation Foundation « C# / CSharp Tutorial






<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <ScrollBar Name="scroll"
               Orientation="Horizontal" Margin="24" 
               Maximum="100" LargeChange="10" SmallChange="1" />

    <Label HorizontalAlignment="Center" 
           Content="{Binding ElementName=scroll, Path=Value}" />

</StackPanel>
WPF Bind Label To Scroll Bar








24.131.Bind to Label
24.131.1.Bind Label To ScrollBarBind Label To ScrollBar
24.131.2.Bind ScrollBar To LabelBind ScrollBar To Label