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

What's the deal with "Xamarin.Forms.Label.Font is obsolete"?

$
0
0

I'm using 1.3.

My question is simple: how do I get this warning to go away?

var nameLabel = new Label
            {
        Font = Font.SystemFontOfSize (NamedSize.Large),
                HorizontalOptions = LayoutOptions.CenterAndExpand,
                YAlign = TextAlignment.Center
            };

I can't find any consistent, clear documentation or explanation anywhere. Also I tried setting the label Style to title style, but it had no effect on Android or iOS (just rendered as default font).


Viewing all articles
Browse latest Browse all 58056

Trending Articles