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?