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

TextCell implicit style

$
0
0

I would like to set color for Text Cells in entire app.

I try something like this
(following https://developer.xamarin.com/guides/xamarin-forms/working-with/styles/):

      Application.Current.Resources = new ResourceDictionary ();

      var textCellStyle = new Style (typeof(TextCell)) {
          Setters = {
              new Setter { Property = TextCell.TextColorProperty, Value = Color.Red }
          }
      };

      Application.Current.Resources.Add (textCellStyle);

but it doesn't work. Someone know how to handle this with styles?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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