整理代码
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user