|Path||Specifies the path to bind to. If unspecified, binds to the DataContext itself.|
|UpdateSourceTrigger||Specifies when the binding source has its value updated. Defaults to |
|Source||Allows for using a |
|RelativeSource||Allows for using another XAML element as a binding source instead of the current DataContext.|
|ElementName||Allows for using a named XAML element as a binding source instead of the current DataContext.|
|FallbackValue||If the binding fails, this value is provided to the binding target.|
|TargetNullValue||If the binding source value is |
|Converter||Specifies the converter |
|ConverterParameter||Specifies an optional parameter to be provided to the converter. This value must be static and cannot be bound.|
|StringFormat||Specifies a format string to be used when displaying the bound value.|
|Delay||(WPF 4.5+) Specifies a Delay in |
By default, WPF updates the binding source when the control loses focus. However, if there is only one control that can get focus -- something that's common in examples -- you will need to specify
UpdateSourceTrigger=PropertyChanged for the updates to work.
You will want want to use
PropertyChanged as the trigger on many two-way bindings unless updating the binding source on every keystroke is costly or live data validation is undesirable.
LostFocus has an unfortunate side effect: pressing enter to submit a form using a button marked
IsDefault does not update the property backing your binding, effectively undoing your changes. Fortunately, some workarounds exist.
Please also note that, unlike UWP, WPF (4.5+) also has the
Delay property in bindings, wich might just be enough for some Bindings with local-only or simple minor intelligence settings, like some