Ooui-tws-port/Samples/TipCalcSample.cs

23 lines
463 B
C#

using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class TipCalcSample : ISample
{
public string Title => "Xamarin.Forms TipCalc";
public string Path => "/tipcalc";
public Ooui.Element CreateElement()
{
var page = new TipCalc.TipCalcPage();
return page.GetOouiElement();
}
public void Publish()
{
UI.Publish(Path, CreateElement);
}
}
}