整理代码

This commit is contained in:
GG Z
2026-02-20 15:31:44 +08:00
parent 94cf3f3266
commit 9f121cfc7f
149 changed files with 4063 additions and 6964 deletions

View File

@@ -1,9 +1,9 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:Melskin.Controls"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Melskin.Controls">
<Style TargetType="{x:Type ContextMenu}" x:Key="DefaultTextBoxContextMenuStyle">
<Style x:Key="DefaultTextBoxContextMenuStyle" TargetType="{x:Type ContextMenu}">
<Setter Property="FontSize" Value="14" />
<Setter Property="Padding" Value="2,0" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}" />
@@ -18,17 +18,17 @@
<ControlTemplate TargetType="{x:Type ContextMenu}">
<Grid>
<Border
x:Name="Border"
Margin="8"
Padding="0"
Background="{TemplateBinding Background}"
BorderThickness="0"
CornerRadius="4"
Effect="{DynamicResource PopupShadow}"
Margin="8"
Padding="0"
x:Name="Border">
Effect="{DynamicResource PopupShadow}">
<StackPanel
Margin="2,1"
IsItemsHost="True"
KeyboardNavigation.DirectionalNavigation="Cycle"
Margin="2,1" />
KeyboardNavigation.DirectionalNavigation="Cycle" />
</Border>
<Rectangle
Margin="8"
@@ -43,7 +43,7 @@
</Setter>
</Style>
<ContextMenu Style="{StaticResource DefaultTextBoxContextMenuStyle}" x:Key="TextBoxContextMenu">
<ContextMenu x:Key="TextBoxContextMenu" Style="{StaticResource DefaultTextBoxContextMenuStyle}">
<MenuItem Command="ApplicationCommands.Copy">
<MenuItem.Icon>
<controls:IconElement Foreground="{DynamicResource TextPrimaryBrush}" Symbol="ContentCopy" />