|
@@ -4,6 +4,7 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
|
|
|
+ xmlns:CommonControls="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel.CommonControls"
|
|
|
xmlns:cus="clr-namespace:PDF_Office.CustomControl"
|
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
@@ -19,29 +20,7 @@
|
|
|
<ResourceDictionary Source="../../../Styles/SliderStyle.xaml"></ResourceDictionary>
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
<Convert:AnnotArgsTypeConverter x:Key="AnnotArgsTypeConverter"/>
|
|
|
- <DataTemplate x:Key="listboxData">
|
|
|
- <Ellipse Height="20" Width="20" Fill="{Binding}"/>
|
|
|
- </DataTemplate>
|
|
|
|
|
|
- <ContextMenu x:Key="FlyoutMenu" FontSize="14"
|
|
|
- >
|
|
|
- <ContextMenu.ItemContainerStyle>
|
|
|
- <Style TargetType="MenuItem">
|
|
|
- <Setter Property="Padding" Value="0,7,0,7"/>
|
|
|
- <Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
- </Style>
|
|
|
- </ContextMenu.ItemContainerStyle>
|
|
|
- <MenuItem Name="ChangeColorMenuItem" Click="ChangeColorMenuItem_Click" Header="更改颜色" IsEnabled="True">
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Name="BackColorMenuItem" Header="恢复默认颜色" IsEnabled="True">
|
|
|
- </MenuItem>
|
|
|
- </ContextMenu>
|
|
|
-
|
|
|
- <Style x:Key="listboxItemStyle" TargetType="{x:Type ListBoxItem}">
|
|
|
- <Setter Property="ContextMenu" Value="{StaticResource FlyoutMenu}"/>
|
|
|
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
- <Setter Property="Margin" Value="2,0,2,0"/>
|
|
|
- </Style>
|
|
|
</ResourceDictionary>
|
|
|
|
|
|
</UserControl.Resources>
|
|
@@ -77,30 +56,16 @@
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<Grid Margin="0,18,0,0">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="auto"/>
|
|
|
<RowDefinition/>
|
|
|
</Grid.RowDefinitions>
|
|
|
- <local:ThicknessContent x:Name="layerThick" HorizontalAlignment="Right"/>
|
|
|
- <Grid Grid.Row="1">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <cus:ColorDropBox x:Name="ColorDropPicker" Grid.Column="1" BorderThickness="1" HorizontalAlignment="Right"
|
|
|
- BorderBrush="#E2E3E6" Width="80" Height="32">
|
|
|
- </cus:ColorDropBox>
|
|
|
- <ListBox x:Name="ListColor" ItemContainerStyle="{StaticResource listboxItemStyle}" ItemTemplate="{StaticResource listboxData}" BorderThickness="0" Background="Transparent">
|
|
|
- <ListBox.ItemsPanel>
|
|
|
- <ItemsPanelTemplate>
|
|
|
- <WrapPanel Orientation="Horizontal"/>
|
|
|
- </ItemsPanelTemplate>
|
|
|
- </ListBox.ItemsPanel>
|
|
|
-
|
|
|
- </ListBox>
|
|
|
- </Grid>
|
|
|
-
|
|
|
+ <CommonControls:SlidContent x:Name="SlidOpacity" HorizontalAlignment="Right"/>
|
|
|
+ <CommonControls:ColorContent Grid.Row="1" x:Name="cusColor"/>
|
|
|
</Grid>
|
|
|
|
|
|
</StackPanel>
|