Closed jf-dynamics closed 3 years ago
please see sample app on this repo https://github.com/jf-dynamics/SampleWPF to reproduce the above issue.
Hi @jf-dynamics the issue is with how MvvmCross works. When it runs it replaces any window content that you may have specified. If you check your Window's Content
property at the end of the constructor, you will see that it is an instance of DashboardView
and not the Grid
like what you specified in MainWindow.xaml.
I am trying to add a reusable dialog host to my test app. But unfortunately, the app always throws a 'No loaded DialogHost instances.' exception.
The code is very simple.
MainWindow.xaml
MainWindow.xaml.cs
DashboardView.xaml
DashboardView.xaml.cs
When I put this line:
<materialDesign:DialogHost Identifier="RootDialog" />
inside the DashboardView.xaml it works fine.