2018-01-05 12:10:57 +00:00
|
|
|
|
using Ooui;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Samples
|
|
|
|
|
{
|
|
|
|
|
public class MonkeysSample : ISample
|
|
|
|
|
{
|
|
|
|
|
public string Title => "Xamarin.Forms Monkeys";
|
2018-09-02 04:56:35 +00:00
|
|
|
|
public string Path => "/monkeys";
|
2018-01-05 12:10:57 +00:00
|
|
|
|
|
|
|
|
|
public Ooui.Element CreateElement()
|
|
|
|
|
{
|
|
|
|
|
var page = new Monkeys.Views.MonkeysView();
|
|
|
|
|
return page.GetOouiElement();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Publish()
|
|
|
|
|
{
|
2018-09-02 04:56:35 +00:00
|
|
|
|
UI.Publish(Path, CreateElement);
|
2018-01-05 12:10:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|