rubStackOverflow
rubStackOverflow

Reputation: 6163

Xamarin Forms Working with Fonts

I'm trying to reproduce this sample https://github.com/xamarin/xamarin-forms-samples/blob/master/WorkingWithFonts

Especially these lines of code:

var labelBoldItalic = new Label {
    Text = "BoldItalic",
    Font = Font.SystemFontOfSize (14, FontAttributes.Bold | FontAttributes.Italic),
    VerticalOptions = LayoutOptions.CenterAndExpand,
    HorizontalOptions = LayoutOptions.CenterAndExpand,
};

But VS 2013 says: The Name FontAttributes does not exist in the current context. enter image description here

Xamarin Version:

Upvotes: 0

Views: 277

Answers (1)

rubStackOverflow
rubStackOverflow

Reputation: 6163

Thank you Jason.

I solved via NUGET:

Get-Project -all | Install-Package Xamarin.Forms

Upvotes: 1

Related Questions