question

ApptacularApps-8305 avatar image
0 Votes"
ApptacularApps-8305 asked danielescipioni answered

How to create theme resource for DropShadowPanel colour

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"/>





windows-uwp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

danielescipioni avatar image
0 Votes"
danielescipioni answered

DropShadowPanel.Color is a Color, so you have to use

<Color x:Key="ShadowColor">DimGray</Color>
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.