22 lines
439 B
C#
22 lines
439 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|