Ooui-tws-port/Samples/DisplayAlertSample.cs

24 lines
495 B
C#
Raw Normal View History

2017-11-19 18:49:17 +00:00
using System;
using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class DisplayAlertSample : ISample
{
public string Title => "Xamarin.Forms DisplayAlert";
2018-09-02 04:56:35 +00:00
public string Path => "/display-alert";
2017-11-19 18:49:17 +00:00
public Ooui.Element CreateElement ()
{
var page = new DisplayAlertPage ();
return page.GetOouiElement ();
}
public void Publish ()
{
2018-09-02 04:56:35 +00:00
UI.Publish (Path, CreateElement);
2017-11-19 18:49:17 +00:00
}
}
}