Ooui-tws-port/Samples/ButtonXamlSample.cs

23 lines
529 B
C#

using Ooui;
using Xamarin.Forms;
namespace Samples
{
public class ButtonXamlSample : ISample
{
public string Title => "Xamarin.Forms Button XAML";
public string Path => "buttons";
public Ooui.Element CreateElement ()
{
var page = new ButtonXaml.ButtonXamlPage ();
return page.GetOouiElement ();
}
public void Publish()
{
Xamarin.Forms.PageExtensions.Ui.Publish(Path, CreateElement);
}
}
}