diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs new file mode 100644 index 00000000..1042230f --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs @@ -0,0 +1,56 @@ +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, 44476, "[Android] Unwanted margin at top of details page when nested in a NavigationPage")] + public class Bugzilla44476 : TestNavigationPage + { + protected override void Init() + { + BackgroundColor = Color.Maroon; + + PushAsync(new MasterDetailPage + { + Title = "Bugzilla Issue 44476", + Master = new ContentPage + { + Title = "Master", + Content = new StackLayout + { + Children = + { + new Label { Text = "Master" } + } + } + }, + Detail = new ContentPage + { + Title = "Detail", + Content = new StackLayout + { + VerticalOptions = LayoutOptions.FillAndExpand, + Children = + { + new Label { Text = "Detail Page" }, + new StackLayout + { + VerticalOptions = LayoutOptions.EndAndExpand, + Children = + { + new Label { Text = "This should be visible." } + } + } + } + } + }, + }); + } + } +}
\ No newline at end of file |