Friday November 27th

Thursday November 26th

Wednesday November 25th

0 Kicks

This whimsical binding. TwoWay Binding to DataContext. Binding in WPF

I often use Binding to DataContext. It is one of the main advantage of WPF. In most case I set custom class inherit of DependencyObject (for support DependencyProperty) and I have some like next code: <StackPanel> <TextBlock Text="{Binding Path=Id}" /> <TextBlock Text="{Binding Path=Name}" /> <TextBlock Text="{Binding Path=Surname}"/> ... </StackPanel> But sometime I set a simple type for example string. For this case I can implement next Binding: <TextBlock Text="{Binding}" />


Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network