I'm in the process of moving my application from .NET 3.5 to .NET 4.0, and I get the following error message : "Can't put a page in a Style". I've implemented the MVVM pattern for this application and use Data Templates to tell the application how to render my various view models...for example below.
<DataTemplate DataType="{x:Type vm:ConfigureAxViewModel}">
<vw:ConfigureAxPage />
</DataTemplate>
Is there any way around this error? Do I have to make my pages controls?
Thanks, Roy
Docs for both 3.5 & 4.0:
A page can be hosted from Window, NavigationWindow, Frame, or from a browser.
I would not expect a view that is a page to work in many instances for that matter, usually views are just UserControls
. Though i also would not expect that error message...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With