blob: 6c4a3282d9f823458c80f0edb62fa187f0136fe3 (
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
|
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 40073, "Toolbar items are not not functioning properly on UWP", PlatformAffected.WinRT)]
public class Bugzilla40073 : TestNavigationPage
{
ContentPage _theContent;
protected override void Init()
{
_theContent = new ContentPage
{
Content = new StackLayout
{
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
HorizontalTextAlignment = TextAlignment.Center,
Text = "This page should have a toolbar. If it does not, the test has failed."
}
}
}
};
var thePage = new TabbedPage();
thePage.Children.Add(_theContent);
thePage.ToolbarItems.Add(new ToolbarItem() { Text = "Refresh", Icon = "coffee.png" });
PushAsync(thePage);
}
}
}
|