Just a simple question really, might be to simple really but hey here goes.
What makes WPF binding so powerful vs say Winforms databinding?
What are you likes and dislikes about it?
Any code example that show it's power would be cool.
Just a simple question really, might be to simple really but hey here goes.
What makes WPF binding so powerful vs say Winforms databinding?
What are you likes and dislikes about it?
Any code example that show it's power would be cool.
One of the powerful features of WPF data binding is that it can be two way, that changing target property in code change the value in binded control if property is dependency or implements INotifyPropertyChanged the other powerful feature is converters see WPF Two way databinding explained,Properties and data binding and the tired one that I think should be mentioned is that you can use WPF databinding with Animation classes
EDIT
So WPF databinding has this and many other features that is difficult to implement in winforms
The power of WPF binding comes when you bind it to something other than a property on a POCO object.
For example, you can bind one controls enabled state to another controls checked state, like so:
<StackPanel>
<CheckBox x:Name="cb" Content="Enable next section" />
<Grid IsEnabled="{Binding ElementName=cb, Path=IsChecked}">
<Button Content="Click Me!" />
</Grid>
</StackPanel>