We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd18568 commit 2e59a28Copy full SHA for 2e59a28
MaterialDesignThemes.Wpf/PaletteHelper.cs
@@ -14,7 +14,7 @@ public virtual void SetLightDark(bool isDark)
14
{
15
var existingResourceDictionary = Application.Current.Resources.MergedDictionaries
16
.Where(rd => rd.Source != null)
17
- .SingleOrDefault(rd => Regex.Match(rd.Source.AbsolutePath, @"(\/MaterialDesignThemes.Wpf;component\/Themes\/MaterialDesignTheme\.)((Light)|(Dark))").Success);
+ .SingleOrDefault(rd => Regex.Match(rd.Source.OriginalString, @"(\/MaterialDesignThemes.Wpf;component\/Themes\/MaterialDesignTheme\.)((Light)|(Dark))").Success);
18
if (existingResourceDictionary == null)
19
throw new ApplicationException("Unable to find Light/Dark base theme in Application resources.");
20
0 commit comments