diff --git a/src/AmbientSounds.Uwp/AmbientSounds.Uwp.csproj b/src/AmbientSounds.Uwp/AmbientSounds.Uwp.csproj
index b9965918..4139fee0 100644
--- a/src/AmbientSounds.Uwp/AmbientSounds.Uwp.csproj
+++ b/src/AmbientSounds.Uwp/AmbientSounds.Uwp.csproj
@@ -227,6 +227,9 @@
Shimmer.xaml
+
+ SleepTimerButton.xaml
+
SoundGridControl.xaml
@@ -584,6 +587,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
diff --git a/src/AmbientSounds.Uwp/App.Configuration.xaml.cs b/src/AmbientSounds.Uwp/App.Configuration.xaml.cs
index 8726ee3b..87c90e22 100644
--- a/src/AmbientSounds.Uwp/App.Configuration.xaml.cs
+++ b/src/AmbientSounds.Uwp/App.Configuration.xaml.cs
@@ -181,5 +181,6 @@ private static IServiceProvider ConfigureServices(IAppSettings? appsettings = nu
[Singleton(typeof(StreakHistoryCache), typeof(IStreakHistoryCache))]
[Singleton(typeof(StreakHistoryRepository), typeof(IStreakHistoryRepository))]
[Singleton(typeof(MicrosoftStoreUpdater), typeof(IAppStoreUpdater))]
+ [Singleton(typeof(SleepTimerService), typeof(ISleepTimerService))]
private static partial void ConfigureServices(IServiceCollection services);
}
diff --git a/src/AmbientSounds.Uwp/App.xaml b/src/AmbientSounds.Uwp/App.xaml
index 423d6e37..ad81cc45 100644
--- a/src/AmbientSounds.Uwp/App.xaml
+++ b/src/AmbientSounds.Uwp/App.xaml
@@ -294,6 +294,8 @@
+
+
540
diff --git a/src/AmbientSounds.Uwp/Controls/SleepTimerButton.xaml b/src/AmbientSounds.Uwp/Controls/SleepTimerButton.xaml
new file mode 100644
index 00000000..061e75b8
--- /dev/null
+++ b/src/AmbientSounds.Uwp/Controls/SleepTimerButton.xaml
@@ -0,0 +1,162 @@
+
+
+
+
+
+
diff --git a/src/AmbientSounds.Uwp/Controls/SleepTimerButton.xaml.cs b/src/AmbientSounds.Uwp/Controls/SleepTimerButton.xaml.cs
new file mode 100644
index 00000000..ebbbb6d5
--- /dev/null
+++ b/src/AmbientSounds.Uwp/Controls/SleepTimerButton.xaml.cs
@@ -0,0 +1,20 @@
+using AmbientSounds.ViewModels;
+using Microsoft.Extensions.DependencyInjection;
+using Windows.UI.Xaml.Controls;
+
+namespace AmbientSounds.Controls;
+
+public sealed partial class SleepTimerButton : UserControl
+{
+ public SleepTimerButton()
+ {
+ this.InitializeComponent();
+ this.DataContext = App.Services.GetRequiredService();
+ }
+
+ public SleepTimerViewModel ViewModel => (SleepTimerViewModel)this.DataContext;
+
+ public void Initialize() => ViewModel.Initialize();
+
+ public void Uninitialize() => ViewModel.Uninitialize();
+}
diff --git a/src/AmbientSounds.Uwp/MultilingualResources/AmbientSounds.Uwp.ar.xlf b/src/AmbientSounds.Uwp/MultilingualResources/AmbientSounds.Uwp.ar.xlf
index 6052a9a9..7a440b48 100644
--- a/src/AmbientSounds.Uwp/MultilingualResources/AmbientSounds.Uwp.ar.xlf
+++ b/src/AmbientSounds.Uwp/MultilingualResources/AmbientSounds.Uwp.ar.xlf
@@ -1113,6 +1113,14 @@
اعاده تشغيل
+
+
+ سيتوقف Ambie مؤقتا عند انتهاء المؤقت
+
+
+
+ مؤقت النوم
+