How to create theme resource for DropShadowPanel colour

Apptacular Apps 386 Reputation points
2020-06-15T14:01:50.287+00:00

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"/>
Universal Windows Platform (UWP)
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful