blob: 70b7e3d50a260156fa524cf2a158ed87119f3ea5 (
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
|
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace Xamarin.Forms.Controls
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 37431, "NavigationRenderer sets Status Bar Style arbitrarily", PlatformAffected.iOS)]
public class Bugzilla37431 : TestNavigationPage
{
protected override void Init()
{
BarBackgroundColor = Color.White;
BarTextColor = Color.GhostWhite;
PushAsync(new ContentPage()
{
Content = new Label { Text = "If the status bar text is black, this test has passed. If it is unreadable (i.e., white text on white background), this test has failed." },
Title = $"This should be GhostWhite on White."
});
On<iOS>().SetStatusBarTextColorMode(StatusBarTextColorMode.DoNotAdjust);
}
}
}
|