Ooui-tws-port/Samples/BugSweeperSample.cs

23 lines
481 B
C#
Raw Normal View History

2017-12-10 03:18:34 +00:00
using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class BugSweeperSample : ISample
{
public string Title => "Xamarin.Forms BugSweeper";
2018-09-02 04:56:35 +00:00
public string Path => "/bugsweeper";
2017-12-10 03:18:34 +00:00
public Ooui.Element CreateElement ()
{
var page = new BugSweeper.BugSweeperPage ();
return page.GetOouiElement ();
}
2018-09-02 04:56:35 +00:00
public void Publish()
{
UI.Publish(Path, CreateElement);
}
2017-12-10 03:18:34 +00:00
}
}