Announce delete dialog (#13994)

This commit is contained in:
Stefan Markovic
2021-10-27 09:42:17 +02:00
committed by GitHub
parent 2c608c5a92
commit a5edc29be7
3 changed files with 14 additions and 0 deletions

View File

@@ -439,7 +439,9 @@ namespace FancyZonesEditor
SecondaryButtonText = Properties.Resources.Cancel, SecondaryButtonText = Properties.Resources.Cancel,
}; };
Announce(FancyZonesEditor.Properties.Resources.Delete_Layout_Dialog_Announce, dialog.Content.ToString());
var result = await dialog.ShowAsync(); var result = await dialog.ShowAsync();
if (result == ContentDialogResult.Primary) if (result == ContentDialogResult.Primary)
{ {
LayoutModel model = element.DataContext as LayoutModel; LayoutModel model = element.DataContext as LayoutModel;

View File

@@ -231,6 +231,15 @@ namespace FancyZonesEditor.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to Delete layout dialog..
/// </summary>
public static string Delete_Layout_Dialog_Announce {
get {
return ResourceManager.GetString("Delete_Layout_Dialog_Announce", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Delete zone. /// Looks up a localized string similar to Delete zone.
/// </summary> /// </summary>

View File

@@ -285,6 +285,9 @@
<data name="Settings" xml:space="preserve"> <data name="Settings" xml:space="preserve">
<value>Template settings</value> <value>Template settings</value>
</data> </data>
<data name="Delete_Layout_Dialog_Announce" xml:space="preserve">
<value>Delete layout dialog.</value>
</data>
<data name="Are_You_Sure" xml:space="preserve"> <data name="Are_You_Sure" xml:space="preserve">
<value>Are you sure?</value> <value>Are you sure?</value>
</data> </data>