23 lines
478 B
C#
23 lines
478 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()
|
|
{
|
|
PageExtensions.Ui.Publish(Path, CreateElement);
|
|
}
|
|
}
|
|
}
|