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";
|
2018-09-02 04:56:35 +00:00
|
|
|
|
public string Path => "/weatherapp";
|
2017-12-12 20:43:38 +00:00
|
|
|
|
|
|
|
|
|
public Ooui.Element CreateElement()
|
|
|
|
|
{
|
|
|
|
|
var page = new WeatherApp.WeatherPage();
|
|
|
|
|
return page.GetOouiElement();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Publish()
|
|
|
|
|
{
|
2023-03-17 08:08:32 +00:00
|
|
|
|
PageExtensions.Ui.Publish(Path, CreateElement);
|
2017-12-12 20:43:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|