Ooui-tws-port/Samples/WeatherAppSample.cs

22 lines
439 B
C#
Raw Normal View History

2017-12-12 20:43:38 +00:00
using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class WeatherAppSample : ISample
{
public string Title => "Xamarin.Forms WeatherApp";
public Ooui.Element CreateElement()
{
var page = new WeatherApp.WeatherPage();
return page.GetOouiElement();
}
public void Publish()
{
UI.Publish("/weatherapp", CreateElement);
}
}
}