mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
Announce delete dialog (#13994)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user