From b33c22f1380da9807b4ff279f66fffc237f4dc28 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Sat, 21 Dec 2024 20:36:40 +0330 Subject: [PATCH] Add Clock Sample --- README.md | 5 ++++ dev/DevWinUI.Gallery/Assets/Fluent/Clock.png | Bin 0 -> 7447 bytes .../Assets/NavViewMenu/AppData.json | 7 +++++ .../T4Templates/NavigationPageMappings.cs | 1 + .../Views/Pages/Features/ClockPage.xaml | 24 ++++++++++++++++++ .../Views/Pages/Features/ClockPage.xaml.cs | 9 +++++++ .../Pages/Features/DateTimePickerPage.xaml | 2 ++ 7 files changed, 48 insertions(+) create mode 100644 dev/DevWinUI.Gallery/Assets/Fluent/Clock.png create mode 100644 dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml create mode 100644 dev/DevWinUI.Gallery/Views/Pages/Features/ClockPage.xaml.cs 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 0000000000000000000000000000000000000000..1576a8abe204fbc278a079895f7b605db0fbda53 GIT binary patch literal 7447 zcmY*;by!rNPXkI zzvq7U{;|*Ad+l{ryw85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a)e>p!e%qGsBd<;?!+MIPc!$~uCeG;r4$(4z0*b9iaS7}t4;p^P-^ zf^Ih{H`b>~dzsr;4bG;IIokVjd_W)Kg(3bQW75kmCwk_W^#;;G+XaGKP!;K{ir68Q z!p{>RB9n*n=Tf5rx~8%IUhqe>2!Yjj?ei&|hwFC}mlUGZkiyU_SkMX*o<;s~yC;lO zj_XZ8ZS8A|=kjIIiC?+l@;l{qfJjdmmEsq>M1heHJ?|eegwad2SetbY{{5X) NR?v{IerXZ${{Z;p<-`C0 literal 0 HcmV?d00001 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 @@