Mike Nakis
Mike Nakis

Reputation: 62100

Any workaround for broken SystemColors from Win10 onwards?

Since the introduction of Windows 10, the System.Windows.SystemColors class has become useless. This has been discussed since 2018 here:

GitHub › dotnet › dotnet-api-docs › issues › System.Windows.SystemColors useless in Windows 10?

Since about a year ago, there have been some thoughts to maybe do something about this, here:

GitHub › dotnet › wpf › issues › [API Proposal] Introducing AccentColor as SystemColors

However, it is still just a proposal, I would not hold my breath for it.

In the mean time, is there any known workaround?

I want to use one of the system colors in XAML. It used to be possible to do this:

<Setter Property="Foreground"
    Value="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}" />

But this does not yield the color of active captions anymore.

Upvotes: 0

Views: 34

Answers (0)

Related Questions