summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla28796.cs
blob: 467111ba2921dddf7d689f1743f6cddde227dc05 (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
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;

namespace Xamarin.Forms.Controls
{
	[Preserve (AllMembers = true)]
	[Issue (IssueTracker.Bugzilla, 28796, "Crash on Tab change", PlatformAffected.Android, NavigationBehavior.PushModalAsync)]
	public class Bugzilla28796
		: TabbedPage
	{
		public Bugzilla28796()
		{
			Children.Add (new ContentPage {
				Title = "First",
				Content = new Label {
					Text = "Select the second tab. Click the button and before it finishes animating, select the first tab."
				}
			});

			var button = new Button {
				Text = "Navigate"
			};
			button.Clicked += (sender, args) => {
				Navigation.PushModalAsync (new ContentPage());
			};

			Children.Add (new ContentPage {
				Title = "Second",
				Content = button
			});
		}
	}
}