在没有 DynamicResource 的情况下在 WinUI3 中使用系统颜色 - 这可能吗?

Using of system colors in WinUI3 without DynamicResource - is it possible?

我正在将一些 XAML 从 WPF 移植到 WinUI3。据我所知,目前我不能在 WinUI3 中使用 DynamicResource,但是有没有任何解决方法可以在 WPF 中使用像这样的系统颜色:

<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.HighlightColorKey}}"/>

您可以使用相应的 theme resource:

<SolidColorBrush Color="{ThemeResource SystemColorHighlightColor}"/>