Created
September 27, 2017 16:20
-
-
Save SamedBll/523b99ae0eaab3b7b01389cb151d5e91 to your computer and use it in GitHub Desktop.
B(C) - 25
This file contains 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 class ErişebilirlikTestPage : ContentPage | |
{ | |
public ErişebilirlikTestPage() | |
{ | |
Label testLabel = new Label | |
{ | |
Text = "FontSize 20" + Environment.NewLine + "20 karakter arasında", | |
FontSize = 20, | |
HorizontalTextAlignment = TextAlignment.Center, | |
HorizontalOptions = LayoutOptions.Center, | |
VerticalOptions = LayoutOptions.CenterAndExpand | |
}; | |
Label displayLabel = new Label | |
{ | |
HorizontalOptions = LayoutOptions.Center, | |
VerticalOptions = LayoutOptions.CenterAndExpand | |
}; | |
testLabel.SizeChanged += (sender, args) => | |
{ | |
displayLabel.Text = String.Format("{0:F0} \u00D7 {1:F0}", testLabel.Width, | |
testLabel.Height); | |
}; | |
Content = new StackLayout | |
{ | |
Children = | |
{ | |
testLabel, | |
displayLabel | |
} | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment