From 17fdde66d94155fc62a034fa6658995bef6fd6e5 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Tue, 22 Mar 2016 13:02:25 -0700 Subject: Initial import --- .../Bugzilla35490.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla35490.cs (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla35490.cs') diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla35490.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla35490.cs new file mode 100644 index 00000000..119d297f --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla35490.cs @@ -0,0 +1,39 @@ +using Xamarin.Forms.CustomAttributes; + +namespace Xamarin.Forms.Controls +{ + [Preserve (AllMembers = true)] + [Issue (IssueTracker.Bugzilla, 35490, "Label Text Misaligned in Windows Phone 8.1 and WinRT", + PlatformAffected.WinPhone | PlatformAffected.WinRT)] + public class Bugzilla35490 : TestContentPage + { + protected override void Init () + { + var instructions = new Label { + Text = + "The label in the red box below should be centered horizontally and vertically. If it's not, this test has failed." + }; + + + var label = new Label { + BackgroundColor = Color.Red, + TextColor = Color.White, + HorizontalTextAlignment = TextAlignment.Center, + VerticalTextAlignment = TextAlignment.Center, + HeightRequest = 200, + HorizontalOptions = LayoutOptions.Fill, + Text = "Should be centered horizontally and vertically" + }; + + + Content = new StackLayout { + HorizontalOptions = LayoutOptions.Fill, + VerticalOptions = LayoutOptions.Fill, + Children = { + instructions, + label + } + }; + } + } +} \ No newline at end of file -- cgit v1.2.3