maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Issue1305.cs

51 строка
1.0 KiB
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Github, 1305, "ToolbarItems on NavigationPage broken", PlatformAffected.Android, NavigationBehavior.PushModalAsync)]
public class Issue1305 : ContentPage
{
public Issue1305 ()
{
var settings = new ToolbarItem
{
Icon = "bank.png",
Text = "Settings",
Command = new Command(ShowSettingsPage),
};
ToolbarItems.Add(settings);
Content = new ContentView { Content = new Label { Text = "Testing..." } };
Title = "Test Page";
Icon = "Icon.png";
}
async void ShowSettingsPage()
{
await Navigation.PushAsync(new Issue13052());
}
}
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Github, 1305, "ToolbarItems on NavigationPage broken", PlatformAffected.Android)]
public class Issue13052 : ContentPage
{
public Issue13052 ()
{
Content = new ContentView { Content = new Label { Text = "Settings..." } };
Title = "Settings";
Icon = "bank.png";
}
}
}