Ooui-tws-port/Samples/NavigationSample.cs

25 lines
555 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()
{
UI.Publish(Path, CreateElement);
}
}
}