mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
Add name property for delete buton (#7895)
This commit is contained in:
@@ -239,7 +239,15 @@
|
|||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
LastChildFill="True">
|
LastChildFill="True">
|
||||||
<DockPanel DockPanel.Dock="Top" 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" />
|
<Image Source="images/Delete.png" />
|
||||||
</Button>
|
</Button>
|
||||||
<TextBlock DockPanel.Dock="Top"
|
<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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Custom table layout creator.
|
/// Looks up a localized string similar to Custom table layout creator.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
<data name="Grid_Layout_Editor" xml:space="preserve">
|
<data name="Grid_Layout_Editor" xml:space="preserve">
|
||||||
<value>Grid layout editor</value>
|
<value>Grid layout editor</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Choose_Layout" xml:space="preserve">
|
<data name="Choose_Layout" xml:space="preserve">
|
||||||
<value>Choose your layout for this desktop</value>
|
<value>Choose your layout for this desktop</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Crash_Report_Message_Box_Text_Part1" xml:space="preserve">
|
<data name="Crash_Report_Message_Box_Text_Part1" xml:space="preserve">
|
||||||
@@ -186,4 +186,7 @@
|
|||||||
<data name="Zone_Count_Increment" xml:space="preserve">
|
<data name="Zone_Count_Increment" xml:space="preserve">
|
||||||
<value>Increment number of zones in template layout</value>
|
<value>Increment number of zones in template layout</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Custom_Layout_Delete_Button" xml:space="preserve">
|
||||||
|
<value>Delete custom layout</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Reference in New Issue
Block a user