Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


CSharp Programming

CSharp > Code Examples

Binding With Data Context

Binding With Data Context <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="25" Maximum="150" LargeChange="16" SmallChange="1" /> <Label HorizontalAlignment="Center" DataContext="{Binding ElementName=scroll}" Content="{Binding Path=Value}" /> </StackPanel>