Ooui-tws-port/Samples/NavigationSample.cs

25 lines
570 B
C#

using Ooui;
using Xamarin.Forms;
namespace Samples.Navigation
{
public class NavigationSample : ISample
{
public string Title => "Xamarin.Forms Navigation XAML";
public string Path => "navigation-sample";
public Ooui.Element CreateElement()
{
var page = new Navigation.NavigationFirstPage();
var root = new NavigationPage(page);
return root.GetOouiElement();
}
public void Publish()
{
PageExtensions.Ui.Publish(Path, CreateElement);
}
}
}