{"id":5030,"date":"2014-03-30T18:07:47","date_gmt":"2014-03-30T18:07:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-work-with-dynamically-modified-system-colors-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:07:47","modified_gmt":"2014-03-30T18:07:47","slug":"how-to-work-with-dynamically-modified-system-colors-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-work-with-dynamically-modified-system-colors-collection-of-common-programming-errors\/","title":{"rendered":"How to work with dynamically modified system colors?-Collection of common programming errors"},"content":{"rendered":"<p>I have a corner case where both dynamic resources (don&#8217;t allow for converters) and custom markup extensions (only evaluated once) won&#8217;t do the trick. I want to create gradient brushes based on faded variants of the current system colors. Those brushes should update themselves whenever the system&#8217;s color theme changes, so that users don&#8217;t need to restart the application in case they switch to an accessibility theme.<\/p>\n<p>Is it possible to detect changes of the system&#8217;s color theme at runtime within an WPF application? Some kind of event?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a corner case where both dynamic resources (don&#8217;t allow for converters) and custom markup extensions (only evaluated once) won&#8217;t do the trick. I want to create gradient brushes based on faded variants of the current system colors. Those brushes should update themselves whenever the system&#8217;s color theme changes, so that users don&#8217;t need [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5030","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5030"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5030\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}