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

How dinamically set property in xaml

$
0
0

Hi, is there any way to set the color of a label by the xaml?
The text property is already binded to a variable, and i'ld like to set the color as:

if(int.parse(text)< 0) ValueColor=Color.Red;
else ValueColor=Color.Green;

Could i do that?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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