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

Accepted answer
  1. Daniele 1,996 Reputation points
    2020-06-15T15:38:28.377+00:00

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

    <Color x:Key="ShadowColor">DimGray</Color>
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.