Data Binding is an incredibly useful tool for helping simplify seperation of concerns, and there is a huge amount of functionality available for XAML applications in both UWP and WPF applications. But if you're just getting started, it can be a very complicated affair.
For the most part x:Bind and Binding behave the same, but be implementation is a little different. Binding's are evaluated at runtime, whereas x:Bind is evaluated at compile time.
MSDN has a very thorough overview of the differences between {x:Bind}
and {Binding}
, but the most important one (in my opinion) is the default value for Mode
.
{x:Bind}
defaults toOneTime
. Bindings will be evaluated once when the page is loaded.{Binding}
defaults toOneWay
. Bindings are evaluated and updated every time the source property changes.