2018-05-20 20:42:22 +00:00
|
|
|
|
|
|
|
|
|
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";
|
2018-05-20 20:42:22 +00:00
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
2018-05-20 20:42:22 +00:00
|
|
|
|
}
|
|
|
|
|
}
|