Saturday, 22 August 2015

Types of Binding in WPF

All the above 4 things define how data will flow between target and source objects when WPF binding is applied.
Two way: - Data can flow from both source to target and from target to source.
One way: - Data flows only from source to target.
One way to source: - Data flows only from target to source.
One time: - Data flows only for the first time from source to target and after that no communication happens.
Below is an easy tabular representation to memorize the same.
One way to source
Data flow
BindingsTarget to SourceSource target
Two wayYesYes
One way to sourceYesNo
One wayNoYes
One timeNoFor first Yes

No comments:

Post a Comment