From 9b83eb5707c8c349c98e7c9fdf046a8d930de81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Can=20Karag=C3=B6z?= Date: Wed, 8 Apr 2026 11:49:38 +0300 Subject: [PATCH] Added Watch Example That Shows New TimeZone Parameter Usage --- .../Watch/Examples/WatchExample2.razor | 53 +++++++++++++++++++ .../Pages/Components/Watch/WatchPage.razor | 4 ++ 2 files changed, 57 insertions(+) create mode 100644 docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/Examples/WatchExample2.razor diff --git a/docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/Examples/WatchExample2.razor b/docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/Examples/WatchExample2.razor new file mode 100644 index 00000000..6306f6a1 --- /dev/null +++ b/docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/Examples/WatchExample2.razor @@ -0,0 +1,53 @@ +@namespace MudExtensions.Docs.Examples +@inject ISnackbar Snackbar +@using MudBlazor.Extensions +@using MudExtensions.Utilities + + + + + + + + + + + + @foreach (var tz in _timeZones) + { + + @tz.DisplayName (@tz.Id) + + } + + + +
+ + + + +
+
+
+
+ +@code { + MudWatch _watch = new(); + bool _wheel; + bool _showHour = true; + bool _showMinute = true; + bool _showSecond = true; + bool _showMillisecond = false; + + private List _timeZones = new(); + private TimeZoneInfo _selectedTimeZone = TimeZoneInfo.Utc; + + protected override void OnInitialized() + { + _timeZones = TimeZoneInfo.GetSystemTimeZones().ToList(); + _selectedTimeZone = TimeZoneInfo.Local; + } +} diff --git a/docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/WatchPage.razor b/docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/WatchPage.razor index cf396226..eb1ff6e5 100644 --- a/docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/WatchPage.razor +++ b/docs/CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/Watch/WatchPage.razor @@ -5,4 +5,8 @@ + + + +