Ooui-tws-port/Samples/NavigationSample.cs

25 lines
570 B
C#
Raw Normal View History


using Ooui;
using Xamarin.Forms;
namespace Samples.Navigation
{
public class NavigationSample : ISample
{
public string Title => "Xamarin.Forms Navigation XAML";
2018-09-02 04:56:35 +00:00
public string Path => "navigation-sample";
public Ooui.Element CreateElement()
{
var page = new Navigation.NavigationFirstPage();
var root = new NavigationPage(page);
return root.GetOouiElement();
}
2018-09-02 04:56:35 +00:00
public void Publish()
{
2023-03-17 08:08:32 +00:00
PageExtensions.Ui.Publish(Path, CreateElement);
2018-09-02 04:56:35 +00:00
}
}
}