blob: d0c36ac2433b39d0fdbd41f0cf93af6923b21feb (
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
|
using System;
using System.Diagnostics;
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Github, 229, "ToolbarItems broken", PlatformAffected.Android)]
public class Issue229 : ContentPage
{
public Issue229 ()
{
Title = "I am a navigation page.";
var label = new Label {
Text = "I should have a toolbar item",
XAlign = TextAlignment.Center,
YAlign = TextAlignment.Center
};
var refreshBtn = new ToolbarItem ("Refresh", null, () => label.Text = "Clicking it works");
ToolbarItems.Add (refreshBtn);
Content = label;
}
}
}
|