© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
-♤ΛℭΞ RΛMIП

✅ Resource Dictionary(Code behind)

i wanna change a solid color brush color and i want to code read it from another resource dictionary (by an event)
  Application.Current.Resources["EnableBackGround"] = (SolidColorBrush)Application.Current.Resources["NeutralDark"];
  Application.Current.Resources["EnableBackGround"] = (SolidColorBrush)Application.Current.Resources["NeutralDark"];
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

resource dictionary confusion
C#CC# / help
2y ago
WPF - Resource Dictionary - "the resource could not be resolved"
C#CC# / help
2y ago
❔ Change trigger behavior from code behind(!)
C#CC# / help
3y ago
Dictionary vs switch in source generated code
C#CC# / help
17mo ago