mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
Add name property for delete buton (#7895)
This commit is contained in:
@@ -239,7 +239,15 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
LastChildFill="True">
|
||||
<DockPanel DockPanel.Dock="Top" LastChildFill="True" >
|
||||
<Button x:Name="DeleteButton" Visibility="{Binding Converter={StaticResource ModelToVisibilityConverter}}" DockPanel.Dock="Right" MaxHeight="10" Click="OnDelete" Padding="8,4,8,4" Margin="0,0,8,0" BorderThickness="0" Background="#f2f2f2">
|
||||
<Button x:Name="DeleteButton" AutomationProperties.Name="{x:Static props:Resources.Custom_Layout_Delete_Button}"
|
||||
Visibility="{Binding Converter={StaticResource ModelToVisibilityConverter}}"
|
||||
DockPanel.Dock="Right"
|
||||
MaxHeight="10"
|
||||
Click="OnDelete"
|
||||
Padding="8,4,8,4"
|
||||
Margin="0,0,8,0"
|
||||
BorderThickness="0"
|
||||
Background="#f2f2f2">
|
||||
<Image Source="images/Delete.png" />
|
||||
</Button>
|
||||
<TextBlock DockPanel.Dock="Top"
|
||||
|
||||
@@ -141,6 +141,15 @@ namespace FancyZonesEditor.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Delete custom layout.
|
||||
/// </summary>
|
||||
public static string Custom_Layout_Delete_Button {
|
||||
get {
|
||||
return ResourceManager.GetString("Custom_Layout_Delete_Button", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Custom table layout creator.
|
||||
/// </summary>
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
<data name="Grid_Layout_Editor" xml:space="preserve">
|
||||
<value>Grid layout editor</value>
|
||||
</data>
|
||||
<data name="Choose_Layout" xml:space="preserve">
|
||||
<data name="Choose_Layout" xml:space="preserve">
|
||||
<value>Choose your layout for this desktop</value>
|
||||
</data>
|
||||
<data name="Crash_Report_Message_Box_Text_Part1" xml:space="preserve">
|
||||
@@ -186,4 +186,7 @@
|
||||
<data name="Zone_Count_Increment" xml:space="preserve">
|
||||
<value>Increment number of zones in template layout</value>
|
||||
</data>
|
||||
<data name="Custom_Layout_Delete_Button" xml:space="preserve">
|
||||
<value>Delete custom layout</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user