From 1a1393ca0152d8aa706ad7923a35805b9f1166c1 Mon Sep 17 00:00:00 2001 From: Ariel De Los Santos Date: Thu, 2 Nov 2023 09:09:27 -0400 Subject: [PATCH] feat(ToggleButton): add sample page --- .../SamplePages/ToggleButtonSamplePage.xaml | 125 ++++++++++++++++++ .../ToggleButtonSamplePage.xaml.cs | 13 ++ 2 files changed, 138 insertions(+) create mode 100644 Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml create mode 100644 Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml.cs diff --git a/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml b/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml new file mode 100644 index 000000000..2f07353b4 --- /dev/null +++ b/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml.cs b/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml.cs new file mode 100644 index 000000000..72ef292ff --- /dev/null +++ b/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/ToggleButtonSamplePage.xaml.cs @@ -0,0 +1,13 @@ +using Microsoft.UI.Xaml.Controls; + +namespace Uno.Gallery.Views.Samples +{ + [SamplePage(SampleCategory.UIComponents, "ToggleButton", Description = "Represents a control that a user can select (check) or clear (uncheck). Base class for controls that can switch states, such as CheckBox and RadioButton.", DocumentationLink = "https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.primitives.togglebutton?view=winrt-22621")] + public sealed partial class ToggleButtonSamplePage : Page + { + public ToggleButtonSamplePage() + { + this.InitializeComponent(); + } + } +}