Ooui-tws-port/Samples/ButtonXamlSample.cs

23 lines
529 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()
{
2023-03-17 08:08:32 +00:00
Xamarin.Forms.PageExtensions.Ui.Publish(Path, CreateElement);
2018-09-02 04:56:35 +00:00
}
}
}