You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure when this warning started to be emitted. But noticed it today. When creating a custom window style and attempting to base it from the MetroWindowStyle, I am getting Resource '{x:Type MahApps.Metro.Controls.MetroWindow}' is not found.
Steps to reproduce
The xaml resources header is
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
...
>
I think this issue is not related to MahApps itself. Yes, it's not nice to see this, but at the end it's a waning and is a designer xaml parsing issue. One suggestion is to put the style in the App.xaml and use it then with DynamicResource.
Describe the bug
I am not sure when this warning started to be emitted. But noticed it today. When creating a custom window style and attempting to base it from the MetroWindowStyle, I am getting Resource '{x:Type MahApps.Metro.Controls.MetroWindow}' is not found.
Steps to reproduce
The custom style:
It is on the BasedOn line that the warning is being emitted.
There should not be a warning emitted for this, I would have thought. I have obviously done something wrong or something has changed.
I get the warning in both rider and visual studio with resharper
Environment
The text was updated successfully, but these errors were encountered: