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 trying to use a NavigationDrawer using the example provided at Material.Demo, but following the wiki, the recommended practice to modify themes with code is to use MaterialThemeBase in the App.axaml file, so I did that.
I set everything correctly also on App.axaml.cs where I need to create a theme on OnFrameworkInitializationCompleted, but that is not the issue, I can load the app correctly without using ColorZone, but when I add a ColorZone the application crashes immediately after startup.
When I was messing around to find out what was causing the issue, I got this exception in the design window and if I remove the ColorZone it disappears:
System.Xaml.XamlException: Cannot locate T in Avalonia application styles. Be sure that you include MaterialTheme in your App.xaml in Application.Styles section
Is this an expected behavior? Do I have to use MaterialTheme in App.xaml to be able to use ColorZones? Thank you in advance.
The text was updated successfully, but these errors were encountered:
I am trying to use a NavigationDrawer using the example provided at Material.Demo, but following the wiki, the recommended practice to modify themes with code is to use MaterialThemeBase in the App.axaml file, so I did that.
App.axaml
I set everything correctly also on App.axaml.cs where I need to create a theme on OnFrameworkInitializationCompleted, but that is not the issue, I can load the app correctly without using ColorZone, but when I add a ColorZone the application crashes immediately after startup.
When I was messing around to find out what was causing the issue, I got this exception in the design window and if I remove the ColorZone it disappears:
System.Xaml.XamlException: Cannot locate T in Avalonia application styles. Be sure that you include MaterialTheme in your App.xaml in Application.Styles section
Is this an expected behavior? Do I have to use MaterialTheme in App.xaml to be able to use ColorZones? Thank you in advance.
The text was updated successfully, but these errors were encountered: