Ooui-tws-port/Samples/ButtonXamlSample.cs

23 lines
499 B
C#
Raw Normal View History

2017-11-19 18:49:17 +00:00
using Ooui;
2018-09-02 04:56:35 +00:00
using Xamarin.Forms;
namespace Samples
{
public class ButtonXamlSample : ISample
{
public string Title => "Xamarin.Forms Button XAML";
public string Path => "buttons";
public Ooui.Element CreateElement ()
{
2017-11-19 18:49:17 +00:00
var page = new ButtonXaml.ButtonXamlPage ();
2018-09-02 04:56:35 +00:00
return page.GetOouiElement ();
}
public void Publish()
{
UI.Publish(Path, CreateElement);
}
}
}