blob: 29163f71abdb08e39379ff6f4b5dfcc829ccceb2 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
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";
}
}
}
|