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 want to create a toggle button to change the value of the BaseTheme and primary and secondary colors using MVVM i binded the toggle to a method as shown below
var pallete = new PaletteHelper();
var theme = pallete.GetTheme();
when i try to get the theme i get this exception
System.InvalidOperationException: Could not locate required resource with key(s) 'MaterialDesign.Brush.Primary.Light
My project is a class library Revit plugin with some WPF views I don't have an App.xaml file
Version
5.1
The text was updated successfully, but these errors were encountered:
Bug explanation
I have a resource dictionary with this values assigned
<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" /> <materialDesign:BundledTheme BaseTheme="Dark" PrimaryColor="LightBlue" SecondaryColor="LightBlue" /> </ResourceDictionary.MergedDictionaries>
I want to create a toggle button to change the value of the BaseTheme and primary and secondary colors using MVVM i binded the toggle to a method as shown below
when i try to get the theme i get this exception
System.InvalidOperationException: Could not locate required resource with key(s) 'MaterialDesign.Brush.Primary.Light
My project is a class library Revit plugin with some WPF views I don't have an App.xaml file
Version
5.1
The text was updated successfully, but these errors were encountered: