diff --git a/README.md b/README.md index ee2d672..bb00591 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,8 @@ Install-Package DevWinUI - ✨ DateTimePicker - ✨ CalendarWithClock +- ✨ Clock +- ✨ CirclePanel - ✨ CalendarView Style - ✨ ProgressButton - ✨ TextBox @@ -258,6 +260,9 @@ Install-Package DevWinUI.ContextMenu ### CalendarWithClock ![DevWinUI](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/CalendarWithClock.gif) +### Clock +![DevWinUI](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/Clock.gif) + ### ProgressButton ![DevWinUI](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/ProgressButton.gif) diff --git a/dev/DevWinUI.Gallery/Assets/Fluent/Clock.png b/dev/DevWinUI.Gallery/Assets/Fluent/Clock.png new file mode 100644 index 0000000..1576a8a Binary files /dev/null and b/dev/DevWinUI.Gallery/Assets/Fluent/Clock.png differ diff --git a/dev/DevWinUI.Gallery/Assets/NavViewMenu/AppData.json b/dev/DevWinUI.Gallery/Assets/NavViewMenu/AppData.json index 7bf232d..b169add 100644 --- a/dev/DevWinUI.Gallery/Assets/NavViewMenu/AppData.json +++ b/dev/DevWinUI.Gallery/Assets/NavViewMenu/AppData.json @@ -94,6 +94,13 @@ "ImagePath": "ms-appx:///Assets/Fluent/RatingControl.png", "IsSpecialSection": false, "Items": [ + { + "UniqueId": "DevWinUIGallery.Views.ClockPage", + "Title": "Clock", + "Subtitle": "Analog Clock", + "IsNew": true, + "ImagePath": "ms-appx:///Assets/Fluent/Clock.png" + }, { "UniqueId": "DevWinUIGallery.Views.DateTimePickerPage", "Title": "DateTimePicker", diff --git a/dev/DevWinUI.Gallery/T4Templates/NavigationPageMappings.cs b/dev/DevWinUI.Gallery/T4Templates/NavigationPageMappings.cs index 102b8a6..935d1d2 100644 --- a/dev/DevWinUI.Gallery/T4Templates/NavigationPageMappings.cs +++ b/dev/DevWinUI.Gallery/T4Templates/NavigationPageMappings.cs @@ -25,6 +25,7 @@ public partial class NavigationPageMappings {"DevWinUIGallery.Views.WaveCirclePage", typeof(DevWinUIGallery.Views.WaveCirclePage)}, {"DevWinUIGallery.Views.BubblePage", typeof(DevWinUIGallery.Views.BubblePage)}, {"DevWinUIGallery.Views.GooeyPage", typeof(DevWinUIGallery.Views.GooeyPage)}, + {"DevWinUIGallery.Views.ClockPage", typeof(DevWinUIGallery.Views.ClockPage)}, {"DevWinUIGallery.Views.DateTimePickerPage", typeof(DevWinUIGallery.Views.DateTimePickerPage)}, {"DevWinUIGallery.Views.CalendarWithClockPage", typeof(DevWinUIGallery.Views.CalendarWithClockPage)}, {"DevWinUIGallery.Views.RichTextFormatterPage", typeof(DevWinUIGallery.Views.RichTextFormatterPage)}, diff --git a/dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml b/dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml new file mode 100644 index 0000000..f6c2596 --- /dev/null +++ b/dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml @@ -0,0 +1,24 @@ + + + + + + + + <dev:Clock /> + + + + + + diff --git a/dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml.cs b/dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml.cs new file mode 100644 index 0000000..ec0634f --- /dev/null +++ b/dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml.cs @@ -0,0 +1,9 @@ +namespace DevWinUIGallery.Views; + +public sealed partial class ClockPage : Page +{ + public ClockPage() + { + this.InitializeComponent(); + } +} diff --git a/dev/DevWinUI.Gallery/Views/Pages/Features/DateTimePickerPage.xaml b/dev/DevWinUI.Gallery/Views/Pages/Features/DateTimePickerPage.xaml index 6ba2e89..ea69a7a 100644 --- a/dev/DevWinUI.Gallery/Views/Pages/Features/DateTimePickerPage.xaml +++ b/dev/DevWinUI.Gallery/Views/Pages/Features/DateTimePickerPage.xaml @@ -32,6 +32,7 @@