Ooui-tws-port/Samples/WeatherAppSample.cs

23 lines
490 B
C#

using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class WeatherAppSample : ISample
{
public string Title => "Xamarin.Forms WeatherApp";
public string Path => "/weatherapp";
public Ooui.Element CreateElement()
{
var page = new WeatherApp.WeatherPage();
return page.GetOouiElement();
}
public void Publish()
{
PageExtensions.Ui.Publish(Path, CreateElement);
}
}
}