From a5edc29be7481ea336ba1aa3f0184a9237228d76 Mon Sep 17 00:00:00 2001
From: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
Date: Wed, 27 Oct 2021 09:42:17 +0200
Subject: [PATCH] Announce delete dialog (#13994)
---
.../editor/FancyZonesEditor/MainWindow.xaml.cs | 2 ++
.../FancyZonesEditor/Properties/Resources.Designer.cs | 9 +++++++++
.../editor/FancyZonesEditor/Properties/Resources.resx | 3 +++
3 files changed, 14 insertions(+)
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs
index 36718455da..d09a892e13 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs
@@ -439,7 +439,9 @@ namespace FancyZonesEditor
SecondaryButtonText = Properties.Resources.Cancel,
};
+ Announce(FancyZonesEditor.Properties.Resources.Delete_Layout_Dialog_Announce, dialog.Content.ToString());
var result = await dialog.ShowAsync();
+
if (result == ContentDialogResult.Primary)
{
LayoutModel model = element.DataContext as LayoutModel;
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs
index 07f7f07cda..5e7b4a12a2 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.Designer.cs
@@ -231,6 +231,15 @@ namespace FancyZonesEditor.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Delete layout dialog..
+ ///
+ public static string Delete_Layout_Dialog_Announce {
+ get {
+ return ResourceManager.GetString("Delete_Layout_Dialog_Announce", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Delete zone.
///
diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx
index e6345e1651..635f97d19c 100644
--- a/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx
+++ b/src/modules/fancyzones/editor/FancyZonesEditor/Properties/Resources.resx
@@ -285,6 +285,9 @@
Template settings
+
+ Delete layout dialog.
+
Are you sure?