blob: e7bfaa629779324b5567195288cab28d87d55b19 (
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
67
68
69
70
71
72
73
|
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Github, 194, "iOS tab edit has no done button to return", PlatformAffected.iOS)]
public class Issue194 : TabbedPage
{
public Issue194 ()
{
Title = "Issue 194";
var leavePageBtn = new Button {
Text = "Leave"
};
// May have unexpected behavior but navigation page is needed to replicate the bug.
leavePageBtn.Clicked += (s, e) => Navigation.PopModalAsync ();
var pageOne = new ContentPage {
Title = "Page 1",
Content = leavePageBtn
};
var pageTwo = new ContentPage {
Title = "Page 2"
};
var pageThree = new ContentPage {
Title = "Page 3"
};
var pageFour = new ContentPage {
Title = "Page 4"
};
var pageFive = new ContentPage {
Title = "Page 5"
};
var pageSix = new ContentPage {
Title = "Page 6"
};
var pageSeven = new ContentPage {
Title = "Page 7"
};
var pageEight = new ContentPage {
Title = "Page 8"
};
var pageNine = new ContentPage {
Title = "Page 9"
};
if (Device.RuntimePlatform == Device.iOS) {
// Create an overflow amount of tabs depending on device
if (Device.Idiom == TargetIdiom.Tablet) {
Children.Add (pageOne);
Children.Add (pageTwo);
Children.Add (pageThree);
Children.Add (pageFour);
Children.Add (pageFive);
Children.Add (pageSix);
Children.Add (pageSeven);
Children.Add (pageEight);
Children.Add (pageNine);
} else {
Children.Add (pageOne);
Children.Add (pageTwo);
Children.Add (pageThree);
Children.Add (pageFour);
Children.Add (pageFive);
Children.Add (pageSix);
}
}
}
}
}
|