Ooui-tws-port/Samples/TipCalcSample.cs

22 lines
427 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";
public Ooui.Element CreateElement()
{
var page = new TipCalc.TipCalcPage();
return page.GetOouiElement();
}
public void Publish()
{
UI.Publish("/tipcalc", CreateElement);
}
}
}