I'm new to data-binding and I am having a hard-time setting it up for my WPF application:
I have a class Test which implements INotifyPropertyChanged and a property Text.
When I do this in the code-behind:
Binding b = new Binding("Text");
b.Source = Test;
label1.SetBinding(ContentProperty, b);
everything works great.
When I do the same thing in XAML:
Content="{Binding Source=Window.Test, Path=Text}"
The label content does not update.
I would like to avoid having to do this in the code-behind, what am I doing wrong?