Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

How to use defined color from App.xaml in style

$
0
0

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 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>