Created
December 10, 2014 12:24
-
-
Save rmarinho/aa4b10a61214cb943348 to your computer and use it in GitHub Desktop.
FontPage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Page GetMainPage () | |
{ | |
var root = new StackLayout (); | |
for (double i = 1; i < 50; i+=0.5) { | |
var font = Font.SystemFontOfSize (i); | |
root.Children.Add(new Label{ Font = font, Text =string.Format("Text with FontSize {0}",i)} ); | |
} | |
return new ContentPage { | |
Content = new ScrollView { Content = root } | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment