Ooui-tws-port/Samples/XuzzleSample.cs

23 lines
487 B
C#

using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class XuzzleSample : ISample
{
public string Title => "Xamarin.Forms Xuzzle";
public string Path => "/xuzzle";
public Ooui.Element CreateElement()
{
var page = new Xuzzle.XuzzlePage();
return page.GetOouiElement();
}
public void Publish()
{
Xamarin.Forms.PageExtensions.Ui.Publish(Path, CreateElement);
}
}
}