mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
Announce delete dialog (#13994)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
/// Looks up a localized string similar to Delete zone.
|
||||
/// </summary>
|
||||
|
||||
@@ -285,6 +285,9 @@
|
||||
<data name="Settings" xml:space="preserve">
|
||||
<value>Template settings</value>
|
||||
</data>
|
||||
<data name="Delete_Layout_Dialog_Announce" xml:space="preserve">
|
||||
<value>Delete layout dialog.</value>
|
||||
</data>
|
||||
<data name="Are_You_Sure" xml:space="preserve">
|
||||
<value>Are you sure?</value>
|
||||
</data>
|
||||
|
||||
Reference in New Issue
Block a user