08-11-2021, 09:36 AM
Hi,
to debug bindings there are multiple ways. If you use Visual Studio (and I assume Rider or other IDE should have something similar), you can look into the output window for logs. Bindings are not very informative so you might need to set them more verbose - Tools -> Options -> Debugging -> Output window (just set Data binding to verbose). This should tell you if and why the bindings failed.
You can also use tools like snoopwpf/snoopwpf: Snoop - The WPF Spy Utility (github.com) that attaches to the process and you can identify if the view model is truly correct.
In the case you are using VS 2019, then the recent versions should also have xaml bindings failures window (under Debug->Windows).
to debug bindings there are multiple ways. If you use Visual Studio (and I assume Rider or other IDE should have something similar), you can look into the output window for logs. Bindings are not very informative so you might need to set them more verbose - Tools -> Options -> Debugging -> Output window (just set Data binding to verbose). This should tell you if and why the bindings failed.
You can also use tools like snoopwpf/snoopwpf: Snoop - The WPF Spy Utility (github.com) that attaches to the process and you can identify if the view model is truly correct.
In the case you are using VS 2019, then the recent versions should also have xaml bindings failures window (under Debug->Windows).

