I'm making C# application for Universal Windows Platform (UWP) and I would like to bind manually to the xaml element from the properties (Create Data Binding... after clicking on rectangle next to ie. Content in Button Properties).
Binding is of course working when I type Content={Binding Text} from keyboard. This has place just in the UWP projects, and it is working for normal WPF applications.
And code behind:
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
this.DataContext = this;
}
public string Text { get; private set; } = "Hello";
}
Has anyone solved this problem because it is slightly annoying?
