Ooui-tws-port/Samples/TipCalcSample.cs

23 lines
463 B
C#
Raw Normal View History

2017-12-12 20:25:56 +00:00
using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class TipCalcSample : ISample
{
public string Title => "Xamarin.Forms TipCalc";
2018-09-02 04:56:35 +00:00
public string Path => "/tipcalc";
2017-12-12 20:25:56 +00:00
public Ooui.Element CreateElement()
{
var page = new TipCalc.TipCalcPage();
return page.GetOouiElement();
}
public void Publish()
{
2018-09-02 04:56:35 +00:00
UI.Publish(Path, CreateElement);
2017-12-12 20:25:56 +00:00
}
}
}