blob: 43f1d84f128fb65eb3043bb6dde0ebbe937418c9 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
|
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 43519, "[UWP] MasterDetail page ArguementException when nested in a TabbedPage and returning from modal page", PlatformAffected.UWP)]
public class Bugzilla43519 : TestTabbedPage
{
protected override void Init()
{
var modalPage = new ContentPage
{
Title = "ModalPage",
Content = new StackLayout
{
Children =
{
new Button
{
Command = new Command(() => Navigation.PopModalAsync()),
Text = "Pop modal page -- should not crash on UWP"
}
}
}
};
var mdp = new MasterDetailPage
{
Title = "Page 1",
Master = new ContentPage
{
Title = "Master",
Content = new StackLayout()
},
Detail = new ContentPage
{
Title = "Detail",
Content = new StackLayout()
}
};
Children.Add(mdp);
Children.Add(new ContentPage
{
Title = "Page 2",
Content = new StackLayout
{
Children =
{
new Button
{
Command = new Command(() => Navigation.PushModalAsync(modalPage)),
Text = "Click to display modal"
}
}
}
});
}
}
}
|