From 010d1f75d00567025ba0d9ee3e68c63a6d97f0f5 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Sun, 19 Nov 2017 12:49:17 -0600 Subject: [PATCH] Organize samples --- Samples/ButtonXamlSample.cs | 16 ++++++++++++++ ...AlertSample.xaml => DisplayAlertPage.xaml} | 4 ++-- ...ample.xaml.cs => DisplayAlertPage.xaml.cs} | 12 +++------- Samples/DisplayAlertSample.cs | 22 +++++++++++++++++++ Samples/Samples.csproj | 9 +++++--- Samples/XamlPageSample.cs | 14 ------------ 6 files changed, 49 insertions(+), 28 deletions(-) create mode 100644 Samples/ButtonXamlSample.cs rename Samples/{DisplayAlertSample.xaml => DisplayAlertPage.xaml} (82%) rename Samples/{DisplayAlertSample.xaml.cs => DisplayAlertPage.xaml.cs} (73%) create mode 100644 Samples/DisplayAlertSample.cs delete mode 100644 Samples/XamlPageSample.cs diff --git a/Samples/ButtonXamlSample.cs b/Samples/ButtonXamlSample.cs new file mode 100644 index 0000000..cc82b4a --- /dev/null +++ b/Samples/ButtonXamlSample.cs @@ -0,0 +1,16 @@ +using Ooui; +using Xamarin.Forms; + +namespace Samples +{ + public class ButtonXamlSample : ISample + { + public string Title => "Xamarin.Forms Button XAML"; + + public Ooui.Element CreateElement () + { + var page = new ButtonXaml.ButtonXamlPage (); + return page.GetOouiElement (); + } + } +} diff --git a/Samples/DisplayAlertSample.xaml b/Samples/DisplayAlertPage.xaml similarity index 82% rename from Samples/DisplayAlertSample.xaml rename to Samples/DisplayAlertPage.xaml index 77fa509..039fe09 100644 --- a/Samples/DisplayAlertSample.xaml +++ b/Samples/DisplayAlertPage.xaml @@ -1,7 +1,7 @@ - + + x:Class="Samples.DisplayAlertPage">