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

Is there a way to know what actual color the Default color is at runtime?

$
0
0

Say I have a Label with no TextColor defined, so it takes the Default color for the platform. At runtime I can read that Label.TextColor property, but what I get is a Color with all components set to -1 (so, the Default color). But on Windows Phone, for instance, it's actually white. And on iOS it's black. Is it possible to get (again, at runtime) the real Color that Label is using for its text with components set to 1 (for white) or 0 (for black) or whatever?


Viewing all articles
Browse latest Browse all 79144

Trending Articles



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