Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Access AppThemeBinding in App.xaml from Android

$
0
0

I'm using AppThemeBinding to respond to the dark theme on a device. I put all the colors in App.xaml and then I using static resource to access the style:

Now I need to access these colors from Android and iOS in two different ways:

1) With xml:

2) With C#:

Is this possible? If yes, how? If now, how can I achieve the respond to dark/light theme in Android and iOS?

I hope someone can help.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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