Universal Windows Platform (UWP)
A Microsoft platform for building and publishing apps for Windows desktop devices.
3,012 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What's the correct property to use for a theme resource colour for DropShadowPanel? The code I tried didn't work for me. I think SolidColorBrush needs to change to something else but don't know what that would be.
MainPage.xaml
<controls:DropShadowPanel BlurRadius="1" ShadowOpacity="1" OffsetX="0" OffsetY="2" Color="{ThemeResource ShadowColor}">
App.xaml
<SolidColorBrush x:Key="ShadowColor" Color="DimGray"/>
DropShadowPanel.Color is a Color, so you have to use
<Color x:Key="ShadowColor">DimGray</Color>