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

Settings FontSize not working?

$
0
0

In the following example, the Label is rendered as green and bold. But not 60 in size.

Is there something I am doing wrong? (Using 1.3.1 Pre2)

   App.Current.Resources = new ResourceDictionary();

            App.Current.Resources.Add( new Style(typeof (Label))
            {
                Setters =
                {
                    new Setter()
                    {
                        Property = Label.TextColorProperty,
                        Value = Color.Green
                    },
                    new Setter()
                    {
                        Property = Label.FontSizeProperty,
                        Value = 60m
                    }                      
                    ,
                    new Setter()
                    {
                        Property = Label.FontAttributesProperty,
                        Value = FontAttributes.Bold
                    }
                }
            });

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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