Closed handflucht closed 6 years ago
Thanks for the feedback. Please note that your issue has nothing to do with the Win Application Framework (WAF).
I have seen two possible issues in your code sample:
public MainPage()
{
InitializeComponent();
ViewModel = (MainViewModel)DataContext; // == null
}
Mode=TwoWay
to x:Bind.Thank you very much for answering my questions, even if it's not a bug of the framework.
Could you explain shortly, how to modify the code, that it would work without an LazyModel? we already do so in the WPF-area.
Thanks in advance!
Hi,
first at all, thanks for this project. I used it in several projects and it works very well. Currently I am developing my first UWP-app and I have some troubles with binding. In the following example, the Binding-cmd works, but the x:bind doesn't:
IMainView
MainViewModel
MainPage.xaml
MainPage.xaml.cs
As you can see I am binding the value from SomeStringProperty to a textbox. First with x:Bind, the second time with Binding. The textbox which makes usage of binding works fine, the one with x:bind doesn't show a value at all. If I put a breakpoint on the the getter of the SomeStringProperty it is only accessed once.
Am I missing something?