Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ranbi666 opened this issue Sep 9, 2023 · 1 comment

Comments

@ranbi666
Copy link

ranbi666 commented Sep 9, 2023

`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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants