Exemplo n.º 1
0
        public TestPage() : base("TestPage")
        {
            if (UIApp.IsUWP)
            {
                NavigationPage.SetHasNavigationBar(this, false);
            }

            AddHeaderRow();
            AddButtonRow("Start", Start);
            AddButtonRow("Close", Close, true);
            AddFooterRow();

            var closeItem = new ExtToolbarItem("Close", null, async() =>
            {
                await Close(null);
            });

            ToolbarItems.Add(closeItem);

            UIApp.Run(async() =>
            {
                await Task.Delay(100);
                await Start(null);
            });
        }
Exemplo n.º 2
0
        public TestPage() : base("TestPage")
        {
            if (UIApp.IsUWP)
            {
                NavigationPage.SetHasNavigationBar(this, false);
            }

            var closeItem = new ExtToolbarItem("", "icons/ic_close.png", async() =>
            {
                await Close(null);
            });

            ToolbarItems.Add(closeItem);

            AddHeaderRow();
            AddButtonRow("Start", Start);
            AddButtonRow("Close", Close, true);
            AddFooterRow();

            Device.BeginInvokeOnMainThread(async() =>
            {
                await Task.Delay(250);
                await Start(null);
            });
        }