-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Bugzilla54036.cs
55 lines (48 loc) · 1.68 KB
/
Bugzilla54036.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using System;
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[NUnit.Framework.Category(Core.UITests.UITestCategories.Bugzilla)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 54036, "[UWP] MasterPage - Bad Rendering", PlatformAffected.UWP)]
public class Bugzilla54036 : TestMasterDetailPage
{
class MasterPage : ContentPage
{
public MasterPage()
{
Title = "Master";
var grid = new Grid
{
RowDefinitions =
{
new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) },
new RowDefinition { Height = new GridLength(1, GridUnitType.Star) },
new RowDefinition { Height = new GridLength(1, GridUnitType.Star) },
new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) },
}
};
var label1 = new Label { Text = "On UWP, the very last Label will be visible until the Master is hidden and presented again." };
var label2 = new Label { Text = "If you do not see a Label that says Success at the bottom of the Master" };
var label3 = new Label { Text = "then this test has failed." };
var label4 = new Label { Text = "Success" };
grid.AddChild(label1, 0, 0);
grid.AddChild(label2, 0, 1);
grid.AddChild(label3, 0, 2);
grid.AddChild(label4, 0, 3);
Content = grid;
}
}
protected override void Init()
{
Master = new MasterPage();
Detail = new ContentPage();
IsPresented = true;
Device.StartTimer(TimeSpan.FromMilliseconds(500), () => { IsPresented = false; return false; });
Device.StartTimer(TimeSpan.FromMilliseconds(1000), () => { IsPresented = true; return false; });
}
}
}