-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue10438.cs
66 lines (53 loc) · 1.31 KB
/
Issue10438.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
56
57
58
59
60
61
62
63
64
65
66
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.Navigation)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 10438, "NavigationPage.HideNavigationBarSeparator doesn't work on iOS 13.4", PlatformAffected.iOS)]
public class Issue10438 : TestNavigationPage
{
public Issue10438()
{
BarBackgroundColor = Color.Cornsilk;
On<iOS>().SetPrefersLargeTitles(true);
var page = new ContentPage
{
Title = "Issue 10438"
};
var layout = new StackLayout();
var hideButton = new Button
{
Text = "Hide NavigationBarSeparator"
};
hideButton.Clicked += (sender, args) =>
{
On<iOS>().SetHideNavigationBarSeparator(true);
};
var showButton = new Button
{
Text = "Hide NavigationBarSeparator"
};
showButton.Clicked += (sender, args) =>
{
On<iOS>().SetHideNavigationBarSeparator(false);
};
layout.Children.Add(hideButton);
layout.Children.Add(showButton);
page.Content = layout;
PushAsync(page);
}
protected override void Init()
{
}
}
}