Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.45k stars 446 forks source link

When the program starts, an exception is triggered in the UpdateBrushes function .cs ColorsHelper #568

Open ranbi666 opened 1 year ago

ranbi666 commented 1 year ago

`System.Windows.Markup.XamlParseException HResult=0x80131501 Message=An exception was thrown while providing a value on "ModernWpf.Markup.StaticResourceExtension", line number "1184", line position "69". Source=PresentationFramework StackTrace: at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaled properties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.ResourceDictionary.CreateObject(KeyRecord key) at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache) at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache) at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache) at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache) at System.Windows.ResourceDictionary.ResourceDictionaryEnumerator.System.Collections.IDictionaryEnumerator.get_Entry() at System.Windows.ResourceDictionary.ResourceDictionaryEnumerator.System.Collections.IEnumerator.get_Current() at ModernWpf.ColorsHelper.UpdateBrushes(ResourceDictionary themeDictionary, ResourceDictionary colors) in E:\EdgeDownload\ModernWpf-6580ce2cb3af362b1db8518d04b605c5a295968b\ModernWpf\Helpers\ColorsHelper.cs:line 101

This exception was originally thrown at this call stack: [External Code]

Inner Exception 1: Exception: Resource named "SystemColorGrayTextColor" could not be found. Resource names are case-sensitive. `

hellow554 commented 11 months ago

I have the very same exception, also with other styles, such as SystemColorWindowColorBrush