2016-03-22 23:02:25 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Xamarin.Forms.CustomAttributes;
|
2016-04-26 18:20:55 +03:00
|
|
|
|
using Xamarin.Forms.Internals;
|
2016-03-22 23:02:25 +03:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|