Quantcast
Viewing all articles
Browse latest Browse all 77050

How to use defined color from App.xaml in style

I have color defined in app.xaml

<Color x:Key="TablePageColor" Accent="#EFEFF4" />

Is where way to use this color in style what defined in same app.xaml?
For example:

<Style x:Key="TablePageStyle" TargetType="Page">
        <Setter Property="BackgroundColor" Value="{StaticResource TablePageColor}" />
        <Setter Property="Padding" Value="8" />
      </Style>

Viewing all articles
Browse latest Browse all 77050

Trending Articles