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

How to add global background color style?

$
0
0

Im trying to use an implicit global style to set the BackgroundColor property of ContentPage like this:

<Style TargetType="ContentPage">
        <Setter Property="BackgroundColor" Value="#ff0000" />
</Style>

This doesn't work. My other implicit style on a Button works but I can't seem to figure out how to globally set style for background.

Maybe Im doing it wrong? Is there a better way to style the overall app look? Make some sort of base page?

Thanks,
Jason


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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