OYXH\oyxh преди 2 години
родител
ревизия
02df3cd4f8

+ 12 - 0
PDF Office/EventAggregators/SplitEvent.cs

@@ -43,9 +43,21 @@ namespace PDF_Office.EventAggregators
     {
         public string Unicode { get; set; }
         public bool IsReadMode { get; set; }
+
+        //public bool IsBotaShow { get; set; }
+    }
+
+    public class ReadModePropertyOpenArgs
+    {
+        public string Unicode { get; set; }
+        public bool IsPropertyOpen { get; set; }
     }
 
     public class ReadModeEvent : PubSubEvent<ReadModeArgs>
     {
     }
+
+    public class ReadModePropertyOpenEvent : PubSubEvent<ReadModePropertyOpenArgs>
+    {
+    }
 }

+ 2 - 7
PDF Office/ViewModels/Tools/AnnotToolContentViewModel.Layout.cs

@@ -85,7 +85,7 @@ namespace PDF_Office.ViewModels.Tools
         /// </summary>
         private void ShowPropertyPanel(bool show = true)
         {
-            viewContentViewModel.IsPropertyOpen = show;
+            viewContentViewModel.IsPropertyOpen = show;
         }
 
         #endregion 属性面板
@@ -122,12 +122,7 @@ namespace PDF_Office.ViewModels.Tools
                 foreach (var item in contextMenu.Items)
                 {
                     if (item is MenuItem menuItem1)
-                    {
-                        //if (menuItem1.Tag.ToString() == "DisplayAnnot" || menuItem1.Tag.ToString() == "HiddenAnnot")
-                        //{
-                        //    SetMenuItemVisibility(menuItem1, "DisplayAnnot", "HiddenAnnot", isHiddenAnnot);
-                        //}
-
+                    {
                         switch (menuItem1.Tag.ToString())
                         {
                             case "Paste":

+ 9 - 3
PDF Office/ViewModels/ViewContentViewModel.cs

@@ -515,6 +515,12 @@ namespace PDF_Office.ViewModels
                 //如果设置为手动展开属性面板时,则不响应代码控制的展开
                 if (Settings.Default.AppProperties.InitialVIew.AutoExpandProperty)
                 {
+                    if (mainViewModel.IsBookMode)
+                    {
+                        this.events.GetEvent<ReadModePropertyOpenEvent>().Publish(new ReadModePropertyOpenArgs() { Unicode = unicode });
+                    }
+
+
                     SetProperty(ref isPorpertyOpen, value);
                 }
             }
@@ -1521,8 +1527,8 @@ namespace PDF_Office.ViewModels
             await Task.Delay(1);
             //PDFViewer.MouseMode = MouseModes.None;
 
-
             #region 旧版本
+
             //if (region.Regions.ContainsRegionWithName(ViwerRegionName))
             //{
             //    if (region.Regions[ViwerRegionName].Views.Contains(PDFViewer))
@@ -1542,7 +1548,8 @@ namespace PDF_Office.ViewModels
             //{
             //    EnterSelectedBar(CurrentBar);
             //}
-            #endregion
+
+            #endregion 旧版本
 
             //还原背景色
             PDFViewer.SetBackgroundBrush(new System.Windows.Media.SolidColorBrush(Settings.Default.AppProperties.InitialVIew.BackGround));
@@ -1565,7 +1572,6 @@ namespace PDF_Office.ViewModels
                 region.RequestNavigate(TipContentRegionName, "ReadModelTip");
             }
 
-
             IsLoading = Visibility.Collapsed;
 
             ShowTip(true);

Файловите разлики са ограничени, защото са твърде много
+ 186 - 125
PDF Office/Views/PropertyPanel/AnnotPanel/FreehandAnnotProperty.xaml


+ 459 - 304
PDF Office/Views/PropertyPanel/AnnotPanel/FreetextAnnotProperty.xaml

@@ -1,34 +1,39 @@
-<UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.FreetextAnnotProperty"
-             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             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:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
-             xmlns:cusColor="clr-namespace:PDF_Office.CustomControl.CompositeControl"
-             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
-             xmlns:prism="http://prismlibrary.com/"             
-             prism:ViewModelLocator.AutoWireViewModel="True"
-             xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
-             xmlns:cus="clr-namespace:PDF_Office.CustomControl" xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel" d:DataContext="{d:DesignInstance Type=annotpanel:FreetextAnnotPropertyViewModel}"
-             mc:Ignorable="d"
-             d:DesignHeight="850" d:DesignWidth="800">
+<UserControl
+    x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.FreetextAnnotProperty"
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+    xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
+    xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
+    xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
+    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
+    xmlns:cusColor="clr-namespace:PDF_Office.CustomControl.CompositeControl"
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+    xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
+    xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    xmlns:prism="http://prismlibrary.com/"
+    d:DataContext="{d:DesignInstance Type=annotpanel:FreetextAnnotPropertyViewModel}"
+    d:DesignHeight="850"
+    d:DesignWidth="260"
+    prism:ViewModelLocator.AutoWireViewModel="True"
+    Background="{StaticResource color.sys.layout.mg}"
+    mc:Ignorable="d">
     <UserControl.Resources>
         <ResourceDictionary>
             <ResourceDictionary.MergedDictionaries>
-                <ResourceDictionary Source="../../../Styles/SliderStyle.xaml"></ResourceDictionary>
-                <ResourceDictionary Source="../../../Styles/CustomBtnStyle.xaml"/>
+                <ResourceDictionary Source="../../../Styles/SliderStyle.xaml" />
+                <ResourceDictionary Source="../../../Styles/CustomBtnStyle.xaml" />
             </ResourceDictionary.MergedDictionaries>
-            <Convert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert"/>
-            <Convert:BoolToVisible x:Key="BoolToVisible"/>
-            <Convert:CheckToVisibleMutiConvert x:Key="CheckToVisibleMutiConvert"/>
-            <Convert:TextAlignToCheckedConverter x:Key="TextAlignToCheckedConverter"/>
+            <Convert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert" />
+            <Convert:BoolToVisible x:Key="BoolToVisible" />
+            <Convert:CheckToVisibleMutiConvert x:Key="CheckToVisibleMutiConvert" />
+            <Convert:TextAlignToCheckedConverter x:Key="TextAlignToCheckedConverter" />
             <Style x:Key="line1Style" TargetType="{x:Type Line}">
                 <Setter Property="Visibility">
                     <Setter.Value>
                         <MultiBinding Converter="{StaticResource CheckToVisibleMutiConvert}">
-                            <Binding ElementName="TextAlignLeftBtn" Path="IsChecked"/>
-                            <Binding ElementName="TextAlignCenterBtn" Path="IsChecked"/>
+                            <Binding ElementName="TextAlignLeftBtn" Path="IsChecked" />
+                            <Binding ElementName="TextAlignCenterBtn" Path="IsChecked" />
                         </MultiBinding>
                     </Setter.Value>
                 </Setter>
@@ -37,143 +42,178 @@
                 <Setter Property="Visibility">
                     <Setter.Value>
                         <MultiBinding Converter="{StaticResource CheckToVisibleMutiConvert}">
-                            <Binding ElementName="TextAlignCenterBtn" Path="IsChecked"/>
-                            <Binding ElementName="TextAlignRightBtn" Path="IsChecked"/>
+                            <Binding ElementName="TextAlignCenterBtn" Path="IsChecked" />
+                            <Binding ElementName="TextAlignRightBtn" Path="IsChecked" />
                         </MultiBinding>
                     </Setter.Value>
                 </Setter>
             </Style>
 
             <DataTemplate x:Key="FontStyleData">
-                <Grid >
-                    <TextBlock Text="{Binding mFontStyleName}" Foreground="Black"/>
+                <Grid>
+                    <TextBlock Foreground="Black" Text="{Binding mFontStyleName}" />
                 </Grid>
             </DataTemplate>
         </ResourceDictionary>
     </UserControl.Resources>
-    <Grid Background="#F3F3F3">
+    <Grid>
         <StackPanel>
-            <TextBlock Name="AnnotTypeTitle" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="18" LineHeight="24" HorizontalAlignment="Left" Margin="10,8,0,0" Text="{Binding T_Title}"/>
-            <Border Width="228" Height="100" BorderThickness="1" CornerRadius="2" BorderBrush="#DDDDDD" Background="White" Margin="0,8,0,0"
-                     Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
-                    >
+            <TextBlock
+                Name="AnnotTypeTitle"
+                Margin="10,8,0,0"
+                HorizontalAlignment="Left"
+                FontFamily="Segoe UI Semibold"
+                FontSize="18"
+                FontWeight="SemiBold"
+                LineHeight="24"
+                Text="{Binding T_Title}" />
+            <Border
+                Width="228"
+                Height="100"
+                Margin="0,8,0,0"
+                Background="White"
+                BorderBrush="#DDDDDD"
+                BorderThickness="1"
+                CornerRadius="2"
+                Visibility="{Binding BasicVm.IsMultiSelected, Converter={StaticResource InvertBoolToVisibleConvert}}">
                 <Grid>
-                    <Border Name="FreeTextBorder" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5"
+                    <Border
+                        Name="FreeTextBorder"
+                        Padding="5"
+                        HorizontalAlignment="Center"
+                        VerticalAlignment="Center"
+                        Background="{Binding BasicVm.FillColor}"
+                        Opacity="{Binding BasicVm.FillOpacity}">
+                        <TextBlock
+                            Name="SampleText"
+                            HorizontalAlignment="Center"
+                            VerticalAlignment="Center"
+                            FontFamily="{Binding FontVm.CurrentFontFamily.ValueStr}"
+                            FontSize="{Binding FontVm.CurrentFontSize.Value}"
+                            FontStyle="{Binding FontVm.FontStyleItem}"
+                            FontWeight="{Binding FontVm.FontWeightItem}"
+                            Foreground="{Binding FontVm.FontColor}"
                             Opacity="{Binding BasicVm.FillOpacity}"
-                            Background="{Binding BasicVm.FillColor}">
-                        <TextBlock Name="SampleText"
-                                   Foreground="{Binding FontVm.FontColor}" 
-                                   FontFamily="{Binding  FontVm.CurrentFontFamily.ValueStr}"
-                                   FontWeight="{Binding FontVm.FontWeightItem}" 
-                                   FontStyle="{Binding FontVm.FontStyleItem}"
-                                   FontSize="{Binding FontVm.CurrentFontSize.Value}" Opacity="{Binding BasicVm.FillOpacity}"
-                                   Text="Sample" HorizontalAlignment="Center" VerticalAlignment="Center">
-                        </TextBlock>
+                            Text="Sample" />
                     </Border>
 
-                    <Path Name="UnderlinePath" HorizontalAlignment="Center" StrokeThickness="2" Margin="0,51,0,0" Visibility="Collapsed">
+                    <Path
+                        Name="UnderlinePath"
+                        Margin="0,51,0,0"
+                        HorizontalAlignment="Center"
+                        StrokeThickness="2"
+                        Visibility="Collapsed">
                         <Path.Data>
-                            <LineGeometry StartPoint="0,0" EndPoint="62,0"></LineGeometry>
+                            <LineGeometry StartPoint="0,0" EndPoint="62,0" />
                         </Path.Data>
                     </Path>
-                    <Path Name="StrikeoutPath" HorizontalAlignment="Center" StrokeThickness="2" Margin="0,40,0,0" Visibility="Collapsed">
+                    <Path
+                        Name="StrikeoutPath"
+                        Margin="0,40,0,0"
+                        HorizontalAlignment="Center"
+                        StrokeThickness="2"
+                        Visibility="Collapsed">
                         <Path.Data>
-                            <LineGeometry StartPoint="0,0" EndPoint="62,0"></LineGeometry>
+                            <LineGeometry StartPoint="0,0" EndPoint="62,0" />
                         </Path.Data>
                     </Path>
-                    <Path Name="SquigglyPath"  HorizontalAlignment="Center" StrokeThickness="2" Margin="0,51,0,0" Visibility="Collapsed">
-
-                    </Path>
+                    <Path
+                        Name="SquigglyPath"
+                        Margin="0,51,0,0"
+                        HorizontalAlignment="Center"
+                        StrokeThickness="2"
+                        Visibility="Collapsed" />
                 </Grid>
             </Border>
 
             <Border
-                    Height="32"
-                    Margin="15,8,15,18"
-                    BorderBrush="#E2E3E6"
-                    BorderThickness="0">
+                Height="32"
+                Margin="15,8,15,18"
+                BorderBrush="#E2E3E6"
+                BorderThickness="0">
                 <Grid>
                     <Grid.ColumnDefinitions>
-                        <ColumnDefinition/>
-                        <ColumnDefinition Width="auto"/>
+                        <ColumnDefinition />
+                        <ColumnDefinition Width="auto" />
                     </Grid.ColumnDefinitions>
                     <CompositeControl:CustomComboControl
-                            x:Name="ComBoxPresetFont"
-                            Width="188"
-                            Height="32"
-                            HorizontalAlignment="Left"
-                            IsValueContent="True"
-                            ItemSource="{Binding FontVm.PresetFontItems,Mode=OneWay}"
-                            SelectedItems="{Binding FontVm.CurrentPresetFont, Mode=TwoWay}">
+                        x:Name="ComBoxPresetFont"
+                        Width="188"
+                        Height="32"
+                        HorizontalAlignment="Left"
+                        IsValueContent="True"
+                        ItemSource="{Binding FontVm.PresetFontItems, Mode=OneWay}"
+                        SelectedItems="{Binding FontVm.CurrentPresetFont, Mode=TwoWay}">
                         <i:Interaction.Triggers>
                             <i:EventTrigger EventName="ValueChanged">
-                                <i:InvokeCommandAction Command="{Binding SelectedPresetFontCommand}"/>
+                                <i:InvokeCommandAction Command="{Binding SelectedPresetFontCommand}" />
                             </i:EventTrigger>
                         </i:Interaction.Triggers>
                     </CompositeControl:CustomComboControl>
 
-
-                    <Button Grid.Column="1"
-                            Width="32"
-                            Height="32"
-                            HorizontalAlignment="Left" Command="{Binding CustomFontStyleCommand}"
-                            Style="{StaticResource btn.sec}">
+                    <Button
+                        Grid.Column="1"
+                        Width="32"
+                        Height="32"
+                        HorizontalAlignment="Left"
+                        Command="{Binding CustomFontStyleCommand}"
+                        Style="{StaticResource btn.sec}">
                         <Path
-                                Width="16"
-                                Height="16"
-                                Data="M4 8C4 8.82843 3.32843 9.5 2.5 9.5C1.67157 9.5 1 8.82843 1 8C1 7.17157 1.67157 6.5 2.5 6.5C3.32843 6.5 4 7.17157 4 8ZM9.3999 8C9.3999 8.82843 8.72833 9.5 7.8999 9.5C7.07148 9.5 6.3999 8.82843 6.3999 8C6.3999 7.17157 7.07148 6.5 7.8999 6.5C8.72833 6.5 9.3999 7.17157 9.3999 8ZM13.5 9.5C14.3284 9.5 15 8.82843 15 8C15 7.17157 14.3284 6.5 13.5 6.5C12.6716 6.5 12 7.17157 12 8C12 8.82843 12.6716 9.5 13.5 9.5Z"
-                                Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
+                            Width="16"
+                            Height="16"
+                            Data="M4 8C4 8.82843 3.32843 9.5 2.5 9.5C1.67157 9.5 1 8.82843 1 8C1 7.17157 1.67157 6.5 2.5 6.5C3.32843 6.5 4 7.17157 4 8ZM9.3999 8C9.3999 8.82843 8.72833 9.5 7.8999 9.5C7.07148 9.5 6.3999 8.82843 6.3999 8C6.3999 7.17157 7.07148 6.5 7.8999 6.5C8.72833 6.5 9.3999 7.17157 9.3999 8ZM13.5 9.5C14.3284 9.5 15 8.82843 15 8C15 7.17157 14.3284 6.5 13.5 6.5C12.6716 6.5 12 7.17157 12 8C12 8.82843 12.6716 9.5 13.5 9.5Z"
+                            Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
                     </Button>
                 </Grid>
             </Border>
 
             <StackPanel Margin="15,0,15,0">
                 <TextBlock
-                        Margin="0,0,0,10" FontWeight="Normal" 
-                        Foreground="{StaticResource color.sys.text.neutral.lv2}"
-                        Style="{StaticResource PropertyHeaderLv2}"
-                        Text="{Binding T_Font}" />
+                    Margin="0,0,0,10"
+                    FontWeight="Normal"
+                    Foreground="{StaticResource color.sys.text.neutral.lv2}"
+                    Style="{StaticResource PropertyHeaderLv2}"
+                    Text="{Binding T_Font}" />
 
                 <StackPanel>
                     <CompositeControl:CustomComboControl
-                            x:Name="FontFamilyBox"
-                            Height="32"
-                            IsValueContent="True"
-                            ItemSource="{Binding FontVm.FontFamilyItems,Mode=OneWay}"
-                            SelectedItems="{Binding FontVm.CurrentFontFamily, Mode=TwoWay}" >
+                        x:Name="FontFamilyBox"
+                        Height="32"
+                        IsValueContent="True"
+                        ItemSource="{Binding FontVm.FontFamilyItems, Mode=OneWay}"
+                        SelectedItems="{Binding FontVm.CurrentFontFamily, Mode=TwoWay}">
                         <i:Interaction.Triggers>
                             <i:EventTrigger EventName="ValueChanged">
-                                <i:InvokeCommandAction Command="{Binding FontFamilyChangedCommand}"/>
+                                <i:InvokeCommandAction Command="{Binding FontFamilyChangedCommand}" />
                             </i:EventTrigger>
                         </i:Interaction.Triggers>
                     </CompositeControl:CustomComboControl>
 
                     <Grid Margin="0,8">
                         <CompositeControl:CustomComboControl
-                                x:Name="FontStyleBox"
-                                Width="110"
-                                Height="32"
-                                HorizontalAlignment="Left"
-                                IsValueContent="True"
-                                ItemSource="{Binding FontVm.FontStyleItems,Mode=OneWay}"
-                                SelectedItems="{Binding FontVm.CurrrentFontWeightStyle, Mode=TwoWay}">
+                            x:Name="FontStyleBox"
+                            Width="110"
+                            Height="32"
+                            HorizontalAlignment="Left"
+                            IsValueContent="True"
+                            ItemSource="{Binding FontVm.FontStyleItems, Mode=OneWay}"
+                            SelectedItems="{Binding FontVm.CurrrentFontWeightStyle, Mode=TwoWay}">
                             <i:Interaction.Triggers>
                                 <i:EventTrigger EventName="ValueChanged">
-                                    <i:InvokeCommandAction Command="{Binding FontStyleWeightChangedCommand}"/>
+                                    <i:InvokeCommandAction Command="{Binding FontStyleWeightChangedCommand}" />
                                 </i:EventTrigger>
                             </i:Interaction.Triggers>
                         </CompositeControl:CustomComboControl>
 
-
                         <CompositeControl:CustomComboControl
-                                x:Name="FontSizeBox"
-                                Width="110"
-                                Height="32"
-                                HorizontalAlignment="Right"
-                                SelectedItems="{Binding FontVm.CurrentFontSize, Mode=TwoWay}" >
+                            x:Name="FontSizeBox"
+                            Width="110"
+                            Height="32"
+                            HorizontalAlignment="Right"
+                            SelectedItems="{Binding FontVm.CurrentFontSize, Mode=TwoWay}">
                             <i:Interaction.Triggers>
                                 <i:EventTrigger EventName="ValueChanged">
-                                    <i:InvokeCommandAction Command="{Binding FontSizeChangedCommand}"/>
+                                    <i:InvokeCommandAction Command="{Binding FontSizeChangedCommand}" />
                                 </i:EventTrigger>
                             </i:Interaction.Triggers>
                         </CompositeControl:CustomComboControl>
@@ -181,198 +221,201 @@
                     <Grid>
                         <StackPanel Orientation="Horizontal">
                             <RadioButton
-                                    x:Name="TextAlignLeftBtn"
-                                    Width="32"
-                                    Height="32"
-                                    VerticalContentAlignment="Center"
-                                    Background="Transparent"
-                                    Foreground="#616469"
-                                    GroupName="TextAlign"
-                                    IsChecked="{Binding FontVm.StrTextAlign,Mode=OneWay,Converter={StaticResource TextAlignToCheckedConverter},ConverterParameter=AlignLeft}"
-                                    Style="{DynamicResource GreyBgRadioBtnStyle}"
-                                    Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignLeftBtn, Path=Tag}" 
-                                    Tag="AlignLeft">
+                                x:Name="TextAlignLeftBtn"
+                                Width="32"
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Background="Transparent"
+                                Command="{Binding TextAlignCheckedCommand}"
+                                CommandParameter="{Binding ElementName=TextAlignLeftBtn, Path=Tag}"
+                                Foreground="#616469"
+                                GroupName="TextAlign"
+                                IsChecked="{Binding FontVm.StrTextAlign, Mode=OneWay, Converter={StaticResource TextAlignToCheckedConverter}, ConverterParameter=AlignLeft}"
+                                Style="{DynamicResource GreyBgRadioBtnStyle}"
+                                Tag="AlignLeft">
                                 <RadioButton.Content>
                                     <Grid Width="32" Height="32">
                                         <Canvas Margin="5,10,0,0">
                                             <Rectangle
-                                                    Canvas.Top="0.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="0.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="4.25"
-                                                    Width="8"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="4.25"
+                                                Width="8"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="12.25"
-                                                    Width="8"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="12.25"
+                                                Width="8"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="8.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="8.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                         </Canvas>
                                     </Grid>
                                 </RadioButton.Content>
                             </RadioButton>
                             <RadioButton
-                                    x:Name="TextAlignCenterBtn"
-                                    Width="32"
-                                    Height="32"
-                                    Margin="8,0"
-                                    VerticalContentAlignment="Center"
-                                    Background="Transparent"
-                                    Foreground="#616469"
-                                    GroupName="TextAlign"
-                                    Style="{DynamicResource GreyBgRadioBtnStyle}"
-                                    IsChecked="{Binding FontVm.StrTextAlign,Mode=OneWay,Converter={StaticResource TextAlignToCheckedConverter},ConverterParameter=AlignCenter}"
-                                    Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignCenterBtn, Path=Tag}" 
-                                    Tag="AlignCenter">
+                                x:Name="TextAlignCenterBtn"
+                                Width="32"
+                                Height="32"
+                                Margin="8,0"
+                                VerticalContentAlignment="Center"
+                                Background="Transparent"
+                                Command="{Binding TextAlignCheckedCommand}"
+                                CommandParameter="{Binding ElementName=TextAlignCenterBtn, Path=Tag}"
+                                Foreground="#616469"
+                                GroupName="TextAlign"
+                                IsChecked="{Binding FontVm.StrTextAlign, Mode=OneWay, Converter={StaticResource TextAlignToCheckedConverter}, ConverterParameter=AlignCenter}"
+                                Style="{DynamicResource GreyBgRadioBtnStyle}"
+                                Tag="AlignCenter">
                                 <RadioButton.Content>
                                     <Grid Width="32" Height="32">
                                         <Canvas Margin="5,10,0,0">
                                             <Rectangle
-                                                    Canvas.Top="0.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="0.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Left="3"
-                                                    Canvas.Top="4.25"
-                                                    Width="8"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Left="3"
+                                                Canvas.Top="4.25"
+                                                Width="8"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Left="3"
-                                                    Canvas.Top="12.25"
-                                                    Width="8"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Left="3"
+                                                Canvas.Top="12.25"
+                                                Width="8"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="8.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="8.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                         </Canvas>
                                     </Grid>
                                 </RadioButton.Content>
                             </RadioButton>
 
                             <RadioButton
-                                    x:Name="TextAlignRightBtn"
-                                    Grid.Column="2"
-                                    Width="32"
-                                    Height="32"
-                                    VerticalContentAlignment="Center"
-                                    Background="Transparent"
-                                    Foreground="#616469"
-                                    GroupName="TextAlign"
-                                    Style="{DynamicResource GreyBgRadioBtnStyle}"
-                                    IsChecked="{Binding FontVm.StrTextAlign,Mode=OneWay,Converter={StaticResource TextAlignToCheckedConverter},ConverterParameter=AlignRight}"
-                                    Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignRightBtn, Path=Tag}" 
-                                   Tag="AlignRight">
+                                x:Name="TextAlignRightBtn"
+                                Grid.Column="2"
+                                Width="32"
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Background="Transparent"
+                                Command="{Binding TextAlignCheckedCommand}"
+                                CommandParameter="{Binding ElementName=TextAlignRightBtn, Path=Tag}"
+                                Foreground="#616469"
+                                GroupName="TextAlign"
+                                IsChecked="{Binding FontVm.StrTextAlign, Mode=OneWay, Converter={StaticResource TextAlignToCheckedConverter}, ConverterParameter=AlignRight}"
+                                Style="{DynamicResource GreyBgRadioBtnStyle}"
+                                Tag="AlignRight">
                                 <RadioButton.Content>
                                     <Grid Width="32" Height="32">
                                         <Canvas Margin="5,10,0,0">
                                             <Rectangle
-                                                    Canvas.Top="0.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="0.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Left="6"
-                                                    Canvas.Top="4.25"
-                                                    Width="8"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Left="6"
+                                                Canvas.Top="4.25"
+                                                Width="8"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Left="6"
-                                                    Canvas.Top="12.25"
-                                                    Width="8"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Left="6"
+                                                Canvas.Top="12.25"
+                                                Width="8"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="8.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="8.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                         </Canvas>
                                     </Grid>
                                 </RadioButton.Content>
                             </RadioButton>
 
                             <RadioButton
-                                    x:Name="TextAlignBtn"
-                                    Grid.Column="3"
-                                    Width="32"
-                                    Height="32"
-                                    Margin="8,0"
-                                    VerticalContentAlignment="Center"
-                                    Background="Transparent"
-                                    Foreground="#616469"
-                                    GroupName="TextAlign"
-                                    Style="{DynamicResource GreyBgRadioBtnStyle}"
-                                    IsChecked="{Binding FontVm.StrTextAlign,Mode=OneWay,Converter={StaticResource TextAlignToCheckedConverter},ConverterParameter=Justify}"
-                                    Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignBtn, Path=Tag}" 
-                                    Tag="Justify">
+                                x:Name="TextAlignBtn"
+                                Grid.Column="3"
+                                Width="32"
+                                Height="32"
+                                Margin="8,0"
+                                VerticalContentAlignment="Center"
+                                Background="Transparent"
+                                Command="{Binding TextAlignCheckedCommand}"
+                                CommandParameter="{Binding ElementName=TextAlignBtn, Path=Tag}"
+                                Foreground="#616469"
+                                GroupName="TextAlign"
+                                IsChecked="{Binding FontVm.StrTextAlign, Mode=OneWay, Converter={StaticResource TextAlignToCheckedConverter}, ConverterParameter=Justify}"
+                                Style="{DynamicResource GreyBgRadioBtnStyle}"
+                                Tag="Justify">
                                 <RadioButton.Content>
                                     <Grid Width="32" Height="32">
                                         <Canvas Margin="5,10,0,0">
                                             <Rectangle
-                                                    Canvas.Top="0.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="0.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="8.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="8.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="4.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="4.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                             <Rectangle
-                                                    Canvas.Top="12.25"
-                                                    Width="14"
-                                                    Height="1.5"
-                                                    Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
-                                                    StrokeThickness="1.5" />
+                                                Canvas.Top="12.25"
+                                                Width="14"
+                                                Height="1.5"
+                                                Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
+                                                StrokeThickness="1.5" />
                                         </Canvas>
                                     </Grid>
                                 </RadioButton.Content>
                             </RadioButton>
                         </StackPanel>
                         <cusColor:ColorContent
-                                x:Name="FontColorBox"
-                                Width="56"
-                                HorizontalAlignment="Right"
-                                ShowColorList="Collapsed"  
-                                UIColor="{Binding FontVm.CurrentFontColor,Mode=OneWay}"
-                            >
+                            x:Name="FontColorBox"
+                            Width="56"
+                            HorizontalAlignment="Right"
+                            ShowColorList="Collapsed"
+                            UIColor="{Binding FontVm.CurrentFontColor, Mode=OneWay}">
                             <i:Interaction.Triggers>
                                 <i:EventTrigger EventName="SelectedColorInvoke">
-                                    <i:InvokeCommandAction Command="{Binding SelectedColorCommand}" CommandParameter="{Binding ElementName=FontColorBox,Path=SelectedColor}"/>
+                                    <i:InvokeCommandAction Command="{Binding SelectedColorCommand}" CommandParameter="{Binding ElementName=FontColorBox, Path=SelectedColor}" />
                                 </i:EventTrigger>
                             </i:Interaction.Triggers>
                         </cusColor:ColorContent>
@@ -381,111 +424,210 @@
             </StackPanel>
             <Grid Margin="15,18,15,0">
                 <Grid.RowDefinitions>
-                    <RowDefinition Height="auto"/>
-                    <RowDefinition/>
+                    <RowDefinition Height="auto" />
+                    <RowDefinition />
                 </Grid.RowDefinitions>
-                <TextBlock Text="{Binding T_Fill}" FontWeight="Normal" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center"/>
-                <CompositeControl:SlidContent x:Name="layerThick" HorizontalAlignment="Right"
-                                              InitValue="{Binding BasicVm.FillOpacity,Mode=OneWay}"
-                    Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"                           
-                                              >
+                <TextBlock
+                    VerticalAlignment="Center"
+                    FontWeight="Normal"
+                    Foreground="{StaticResource color.sys.text.neutral.lv2}"
+                    Text="{Binding T_Fill}" />
+                <CompositeControl:SlidContent
+                    x:Name="layerThick"
+                    HorizontalAlignment="Right"
+                    InitValue="{Binding BasicVm.FillOpacity, Mode=OneWay}"
+                    Visibility="{Binding BasicVm.IsMultiSelected, Converter={StaticResource InvertBoolToVisibleConvert}}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedValueChanged">
-                            <i:InvokeCommandAction Command="{Binding SelectedOpacityValueCommand}" CommandParameter="{Binding ElementName=layerThick,Path=Value}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedOpacityValueCommand}" CommandParameter="{Binding ElementName=layerThick, Path=Value}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:SlidContent>
-                <CompositeControl:ColorContent Grid.Row="1" x:Name="cusColor" Margin="0,8,0,0"
-                                               ItemSource="{Binding BasicVm.FillColorItems}"
-                                               ColorType="Fill"
-                                               UIColor="{Binding BasicVm.CurrentFillColor,Mode=OneWay}">
+                <CompositeControl:ColorContent
+                    x:Name="cusColor"
+                    Grid.Row="1"
+                    Margin="0,8,0,0"
+                    ColorType="Fill"
+                    ItemSource="{Binding BasicVm.FillColorItems}"
+                    UIColor="{Binding BasicVm.CurrentFillColor, Mode=OneWay}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedColorInvoke">
-                            <i:InvokeCommandAction Command="{Binding SelectedFillColorCommand}" CommandParameter="{Binding ElementName=cusColor,Path=SelectedColor}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedFillColorCommand}" CommandParameter="{Binding ElementName=cusColor, Path=SelectedColor}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:ColorContent>
             </Grid>
 
-
-            <StackPanel Visibility="{Binding IsFillFreeTextAnnot,Converter={StaticResource BoolToVisible}}">
-                <TextBlock Margin="0,8,0,8" Text="Date Type" Foreground="{StaticResource color.sys.text.neutral.lv2}" />
+            <StackPanel Visibility="{Binding IsFillFreeTextAnnot, Converter={StaticResource BoolToVisible}}">
+                <TextBlock
+                    Margin="0,8,0,8"
+                    Foreground="{StaticResource color.sys.text.neutral.lv2}"
+                    Text="Date Type" />
                 <CompositeControl:CustomComboControl
-                                x:Name="DateTimeBox"
-                                Width="228"
-                                Height="32"
-                                HorizontalAlignment="Left"
-                                IsValueContent="True"
-                                ItemSource="{Binding DateFormatItems,Mode=OneWay}"
-                                SelectedItems="{Binding CurrrentDateFormat, Mode=TwoWay}">
+                    x:Name="DateTimeBox"
+                    Width="228"
+                    Height="32"
+                    HorizontalAlignment="Left"
+                    IsValueContent="True"
+                    ItemSource="{Binding DateFormatItems, Mode=OneWay}"
+                    SelectedItems="{Binding CurrrentDateFormat, Mode=TwoWay}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="ValueChanged">
-                            <i:InvokeCommandAction Command="{Binding DateFormatChangedCommand}"/>
+                            <i:InvokeCommandAction Command="{Binding DateFormatChangedCommand}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:CustomComboControl>
 
-                <CheckBox x:Name="isShowTime" Margin="0,16,0,0" Content="Show Time" IsChecked="{Binding IsCheckedTime,Mode=TwoWay}"
-                      Command="{Binding ShowTimeCheckedChnagedCommand}"
-                      >
-
-                </CheckBox>
-
+                <CheckBox
+                    x:Name="isShowTime"
+                    Margin="0,16,0,0"
+                    Command="{Binding ShowTimeCheckedChnagedCommand}"
+                    Content="Show Time"
+                    IsChecked="{Binding IsCheckedTime, Mode=TwoWay}" />
             </StackPanel>
-        
-            <!--MVP不上-->
 
-            <TextBlock x:Name="thicknessText" Visibility="Collapsed" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="14" LineHeight="20" Margin="12,14,0,0" >Thickness</TextBlock>
+            <!--  MVP不上  -->
+
+            <TextBlock
+                x:Name="thicknessText"
+                Margin="12,14,0,0"
+                FontFamily="Segoe UI Semibold"
+                FontSize="14"
+                FontWeight="SemiBold"
+                LineHeight="20"
+                Visibility="Collapsed">
+                Thickness
+            </TextBlock>
 
             <Grid Visibility="Collapsed">
                 <Grid.ColumnDefinitions>
-                    <ColumnDefinition Width="*"></ColumnDefinition>
-                    <ColumnDefinition Width="auto"></ColumnDefinition>
+                    <ColumnDefinition Width="*" />
+                    <ColumnDefinition Width="auto" />
                 </Grid.ColumnDefinitions>
 
-                <Slider Name="ThicknessSlider" VerticalAlignment="Center" Margin="12,0,0,0" Width="148"  Minimum="0" Maximum="24" IsSelectionRangeEnabled="True" IsMoveToPointEnabled="True" 
-                    Style="{StaticResource RoundThumbSlider}"  TickFrequency="1" IsSnapToTickEnabled="True" >
+                <Slider
+                    Name="ThicknessSlider"
+                    Width="148"
+                    Margin="12,0,0,0"
+                    VerticalAlignment="Center"
+                    IsMoveToPointEnabled="True"
+                    IsSelectionRangeEnabled="True"
+                    IsSnapToTickEnabled="True"
+                    Maximum="24"
+                    Minimum="0"
+                    Style="{StaticResource RoundThumbSlider}"
+                    TickFrequency="1">
                     <Slider.Resources>
                         <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#477EDE" />
                         <SolidColorBrush x:Key="{x:Static SystemColors.ControlDarkDarkBrushKey}" Color="#E2E3E6" />
                     </Slider.Resources>
                 </Slider>
 
-
-                <Border Grid.Column="1" BorderBrush="#E2E3E6"  Width="80" Height="32" Margin="0,0,11,0"  BorderThickness="0">
+                <Border
+                    Grid.Column="1"
+                    Width="80"
+                    Height="32"
+                    Margin="0,0,11,0"
+                    BorderBrush="#E2E3E6"
+                    BorderThickness="0">
                     <Grid>
-                        <ComboBox Name="ThicknessBox" BorderThickness="1" Padding="10" Background="Transparent" BorderBrush="#FFE2E3E6"
-                                  MaxDropDownHeight="200">
+                        <ComboBox
+                            Name="ThicknessBox"
+                            Padding="10"
+                            Background="Transparent"
+                            BorderBrush="#FFE2E3E6"
+                            BorderThickness="1"
+                            MaxDropDownHeight="200">
                             <ComboBox.ItemContainerStyle>
                                 <Style TargetType="{x:Type ComboBoxItem}">
-                                    <Setter Property="Padding" Value="10 0 0 0"/>
+                                    <Setter Property="Padding" Value="10,0,0,0" />
                                 </Style>
                             </ComboBox.ItemContainerStyle>
-                            <ComboBoxItem Content="1" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="3" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="6" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="9" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="12" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="15" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="18" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="21" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
-                            <ComboBoxItem Content="24" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="1"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="3"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="6"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="9"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="12"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="15"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="18"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="21"
+                                Template="{StaticResource comboxitem}" />
+                            <ComboBoxItem
+                                Height="32"
+                                VerticalContentAlignment="Center"
+                                Content="24"
+                                Template="{StaticResource comboxitem}" />
                         </ComboBox>
-                        <TextBox Name="ThicknessText" Background="White" FontFamily="Segoe UI" FontSize="14"  Height="20" Margin="10,0,35,0" IsReadOnly="True"
-                             BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left" >
-                        </TextBox>
+                        <TextBox
+                            Name="ThicknessText"
+                            Height="20"
+                            Margin="10,0,35,0"
+                            VerticalAlignment="Center"
+                            Background="White"
+                            BorderThickness="0"
+                            FontFamily="Segoe UI"
+                            FontSize="14"
+                            IsReadOnly="True"
+                            TextAlignment="Left" />
                     </Grid>
                 </Border>
             </Grid>
 
-            <StackPanel Visibility="Collapsed" Orientation="Horizontal" Margin="0,20,0,0">
+            <StackPanel
+                Margin="0,20,0,0"
+                Orientation="Horizontal"
+                Visibility="Collapsed">
 
-                <RadioButton x:Name="BtnSolid" Tag="Solid" GroupName="LineMode"
-                                 Width="105" Height="32" Margin="0,0,10,0" Foreground="#616469"
-                                 VerticalContentAlignment="Center" Background="Transparent"
-                                 Style="{DynamicResource GreyBgRadioBtnStyle}">
+                <RadioButton
+                    x:Name="BtnSolid"
+                    Width="105"
+                    Height="32"
+                    Margin="0,0,10,0"
+                    VerticalContentAlignment="Center"
+                    Background="Transparent"
+                    Foreground="#616469"
+                    GroupName="LineMode"
+                    Style="{DynamicResource GreyBgRadioBtnStyle}"
+                    Tag="Solid">
                     <RadioButton.Content>
-                        <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" />
+                        <Line
+                            Stroke="Black"
+                            StrokeThickness="2"
+                            X1="10"
+                            X2="90"
+                            Y1="5"
+                            Y2="5" />
                     </RadioButton.Content>
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="Checked">
@@ -494,12 +636,26 @@
                     </i:Interaction.Triggers>
                 </RadioButton>
 
-                <RadioButton x:Name="BtnDashed" Tag="Dashed" GroupName="LineMode"
-                                 Width="105" Height="32" Margin="0,0" Foreground="#616469"
-                                 VerticalContentAlignment="Center" Background="Transparent"
-                                 Style="{DynamicResource GreyBgRadioBtnStyle}">
+                <RadioButton
+                    x:Name="BtnDashed"
+                    Width="105"
+                    Height="32"
+                    Margin="0,0"
+                    VerticalContentAlignment="Center"
+                    Background="Transparent"
+                    Foreground="#616469"
+                    GroupName="LineMode"
+                    Style="{DynamicResource GreyBgRadioBtnStyle}"
+                    Tag="Dashed">
                     <RadioButton.Content>
-                        <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" StrokeDashArray="2"/>
+                        <Line
+                            Stroke="Black"
+                            StrokeDashArray="2"
+                            StrokeThickness="2"
+                            X1="10"
+                            X2="90"
+                            Y1="5"
+                            Y2="5" />
                     </RadioButton.Content>
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="Checked">
@@ -507,8 +663,7 @@
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </RadioButton>
-
             </StackPanel>
         </StackPanel>
     </Grid>
-</UserControl>
+</UserControl>

+ 13 - 12
PDF Office/Views/PropertyPanel/AnnotPanel/ImageAnnotProperty.xaml

@@ -1,12 +1,13 @@
-<UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.ImageAnnotProperty"
-             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             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"
-             mc:Ignorable="d" 
-             d:DesignHeight="450" d:DesignWidth="800">
-    <Grid>
-            
-    </Grid>
-</UserControl>
+<UserControl
+    x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.ImageAnnotProperty"
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+    xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    d:DesignHeight="450"
+    d:DesignWidth="260"
+    Background="{StaticResource color.sys.layout.mg}"
+    mc:Ignorable="d">
+    <Grid />
+</UserControl>

+ 3 - 2
PDF Office/Views/PropertyPanel/AnnotPanel/LinkAnnotProperty.xaml

@@ -18,6 +18,7 @@
     d:DesignHeight="680"
     d:DesignWidth="260"
     prism:ViewModelLocator.AutoWireViewModel="True"
+    Background="{StaticResource color.sys.layout.mg}"
     mc:Ignorable="d">
     <UserControl.Resources>
         <ResourceDictionary>
@@ -32,7 +33,7 @@
         </ResourceDictionary>
     </UserControl.Resources>
     <Grid>
-        <StackPanel Background="White" Orientation="Vertical">
+        <StackPanel Background="{StaticResource color.sys.layout.mg}" Orientation="Vertical">
             <TextBlock
                 Name="AnnotTypeTitle"
                 Margin="16,14,0,16"
@@ -41,7 +42,7 @@
                 FontSize="14"
                 FontWeight="Bold"
                 LineHeight="24"
-                Text="{Binding T_Title}"/>
+                Text="{Binding T_Title}" />
             <StackPanel
                 Name="ToggleButtonTab"
                 Margin="12,0,0,0"

+ 56 - 64
PDF Office/Views/PropertyPanel/AnnotPanel/SharpsAnnotProperty.xaml

@@ -12,7 +12,8 @@
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:prism="http://prismlibrary.com/"
     d:DesignHeight="450"
-    d:DesignWidth="800"
+    d:DesignWidth="260"
+    Background="{StaticResource color.sys.layout.mg}"
     prism:ViewModelLocator.AutoWireViewModel="True"
     mc:Ignorable="d">
     <UserControl.Resources>
@@ -24,7 +25,7 @@
             <Convert:ColorToBrushConverter x:Key="ColorToBrushConvert" />
             <Convert:CheckToVisibleMutiConvert x:Key="CheckToVisibleMutiConvert" />
             <DashConvert:DashStyleConverter x:Key="DashStyleConverter" />
-            <Convert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert"/>
+            <Convert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert" />
             <Style x:Key="line1Style" TargetType="{x:Type Line}">
                 <Setter Property="Visibility">
                     <Setter.Value>
@@ -55,7 +56,6 @@
                     </Setter.Value>
                 </Setter>
             </Style>
-
         </ResourceDictionary>
     </UserControl.Resources>
     <Grid Margin="16,0,16,0">
@@ -77,8 +77,7 @@
                 BorderBrush="#DDDDDD"
                 BorderThickness="1"
                 CornerRadius="2"
-                Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
-                >
+                Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}">
                 <Grid>
                     <Path
                         Name="SharpPath"
@@ -98,15 +97,13 @@
                 </Grid>
             </Border>
 
-
             <Border
                 Width="162"
                 Height="32"
                 Margin="0,12,0,0"
                 BorderBrush="#FFE2E3E6"
                 BorderThickness="0"  HorizontalAlignment="Left"
-                Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
-                >
+                Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}">
                 <Grid Name="ToolGrid">
                     <Grid.ColumnDefinitions>
                         <ColumnDefinition Width="40.5" />
@@ -115,21 +112,21 @@
                         <ColumnDefinition Width="40.5" />
                     </Grid.ColumnDefinitions>
 
-                    <RadioButton x:Name="SharpRectBtn" Tag="Rect" GroupName="Shape" 
+                    <RadioButton x:Name="SharpRectBtn" Tag="Rect" GroupName="Shape"
                                  Width="32" Height="32" Margin="0,0" ToolTip="矩形" Padding="7,0,0,0"
                                  VerticalContentAlignment="Center" Background="Transparent"
                                  Style="{DynamicResource GreyBgRadioBtnStyle}">
                         <RadioButton.Content>
                             <Rectangle
-                            Width="16"
-                            Height="16"
-                            HorizontalAlignment="Center"
-                            VerticalAlignment="Center"
-                            Stroke="#273C62" />
+                                Width="16"
+                                Height="16"
+                                HorizontalAlignment="Center"
+                                VerticalAlignment="Center"
+                                Stroke="#273C62" />
                         </RadioButton.Content>
                         <i:Interaction.Triggers>
                             <i:EventTrigger EventName="Checked">
-                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpRectBtn, Path=Tag}"/>
+                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpRectBtn, Path=Tag}" />
                             </i:EventTrigger>
                         </i:Interaction.Triggers>
                     </RadioButton>
@@ -140,15 +137,15 @@
                                  Style="{DynamicResource GreyBgRadioBtnStyle}">
                         <RadioButton.Content>
                             <Ellipse
-                            Width="16"
-                            Height="16"
-                            HorizontalAlignment="Center"
-                            VerticalAlignment="Center"
-                            Stroke="#273C62" />
+                                Width="16"
+                                Height="16"
+                                HorizontalAlignment="Center"
+                                VerticalAlignment="Center"
+                                Stroke="#273C62" />
                         </RadioButton.Content>
                         <i:Interaction.Triggers>
                             <i:EventTrigger EventName="Checked">
-                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpCircleBtn, Path=Tag}"/>
+                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpCircleBtn, Path=Tag}" />
                             </i:EventTrigger>
                         </i:Interaction.Triggers>
                     </RadioButton>
@@ -159,11 +156,11 @@
                                  Style="{DynamicResource GreyBgRadioBtnStyle}">
                         <RadioButton.Content>
                             <Path
-                            Width="16"
-                            Height="16"
-                            HorizontalAlignment="Center"
-                            VerticalAlignment="Center"
-                            Fill="#273C62">
+                                Width="16"
+                                Height="16"
+                                HorizontalAlignment="Center"
+                                VerticalAlignment="Center"
+                                Fill="#273C62">
                                 <Path.Data>
                                     M13.4,2.6 L13.4,8 L12.2,8 L12.1997359,4.648 L2.02426407,14.8242641 L1.17573593,13.9757359 L11.3517359,3.799 L8,3.8 L8,2.6 L13.4,2.6 Z
                                 </Path.Data>
@@ -171,7 +168,7 @@
                         </RadioButton.Content>
                         <i:Interaction.Triggers>
                             <i:EventTrigger EventName="Checked">
-                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpArrowBtn, Path=Tag}"/>
+                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpArrowBtn, Path=Tag}" />
                             </i:EventTrigger>
                         </i:Interaction.Triggers>
                     </RadioButton>
@@ -182,11 +179,11 @@
                                  Style="{DynamicResource GreyBgRadioBtnStyle}">
                         <RadioButton.Content>
                             <Polygon
-                            Width="16"
-                            Height="16"
-                            HorizontalAlignment="Center"
-                            VerticalAlignment="Center"
-                            Fill="#273C62">
+                                Width="16"
+                                Height="16"
+                                HorizontalAlignment="Center"
+                                VerticalAlignment="Center"
+                                Fill="#273C62">
                                 <Polygon.Points>
                                     13.1757359 1.97573593 14.0242641 2.82426407 2.82426407 14.0242641 1.97573593 13.1757359
                                 </Polygon.Points>
@@ -194,7 +191,7 @@
                         </RadioButton.Content>
                         <i:Interaction.Triggers>
                             <i:EventTrigger EventName="Checked">
-                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpLineBtn, Path=Tag}"/>
+                                <i:InvokeCommandAction Command="{Binding SharpsTypeCommand}" CommandParameter="{Binding ElementName=SharpLineBtn, Path=Tag}" />
                             </i:EventTrigger>
                         </i:Interaction.Triggers>
                     </RadioButton>
@@ -206,24 +203,23 @@
                     <RowDefinition Height="auto" />
                     <RowDefinition />
                 </Grid.RowDefinitions>
-                <TextBlock Text="Fill" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center"/>
+                <TextBlock Text="Fill" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center" />
                 <CompositeControl:SlidContent x:Name="layerFill" HorizontalAlignment="Right"
                                               InitValue="{Binding BasicVm.FillOpacity,Mode=OneWay}"
-                                              Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
-                                              >
+                                              Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedValueChanged">
-                            <i:InvokeCommandAction Command="{Binding SelectedOpacityValueCommand}" CommandParameter="{Binding ElementName=layerFill,Path=Value}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedOpacityValueCommand}" CommandParameter="{Binding ElementName=layerFill,Path=Value}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:SlidContent>
                 <CompositeControl:ColorContent x:Name="cusFillColor" Grid.Row="1" Margin="0,8,0,0"
                                                ItemSource="{Binding BasicVm.FillColorItems}"
                                                ColorType="Fill"
-                                               UIColor="{Binding BasicVm.CurrentFillColor,Mode=OneWay}" >
+                                               UIColor="{Binding BasicVm.CurrentFillColor,Mode=OneWay}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedColorInvoke">
-                            <i:InvokeCommandAction Command="{Binding SelectedFillColorCommand}" CommandParameter="{Binding ElementName=cusFillColor,Path=SelectedColor}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedFillColorCommand}" CommandParameter="{Binding ElementName=cusFillColor,Path=SelectedColor}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:ColorContent>
@@ -234,14 +230,13 @@
                     <RowDefinition Height="auto" />
                     <RowDefinition />
                 </Grid.RowDefinitions>
-                <TextBlock Text="Border" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center"/>
-                <CompositeControl:SlidContent x:Name="layerThick" HorizontalAlignment="Right" 
+                <TextBlock Text="Border" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center" />
+                <CompositeControl:SlidContent x:Name="layerThick" HorizontalAlignment="Right"
                                               InitValue="{Binding BasicVm.FillOpacity,Mode=OneWay}"
-                                              Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
-                                              >
+                                              Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedValueChanged">
-                            <i:InvokeCommandAction Command="{Binding SelectedOpacityValueCommand}" CommandParameter="{Binding ElementName=layerThick,Path=Value}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedOpacityValueCommand}" CommandParameter="{Binding ElementName=layerThick,Path=Value}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:SlidContent>
@@ -249,20 +244,19 @@
                 <CompositeControl:ColorContent x:Name="cusColor" Grid.Row="1" Margin="0,8,0,0"
                                                ItemSource="{Binding BasicVm.ColorItems}"
                                                ColorType="Border"
-                                               UIColor="{Binding BasicVm.CurrentBorderColor,Mode=OneWay}" >
+                                               UIColor="{Binding BasicVm.CurrentBorderColor,Mode=OneWay}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedColorInvoke">
-                            <i:InvokeCommandAction Command="{Binding SelectedBorderColorCommand}" CommandParameter="{Binding ElementName=cusColor,Path=SelectedColor}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedBorderColorCommand}" CommandParameter="{Binding ElementName=cusColor,Path=SelectedColor}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:ColorContent>
-
             </Grid>
 
             <CompositeControl:SlidComboControl x:Name="thickness" Margin="0,0,0,0"  ItemsSource="{Binding ThicknessItems}" Value="{Binding  BasicVm.AnnotThickness,Mode=TwoWay}">
                 <i:Interaction.Triggers>
                     <i:EventTrigger EventName="ValueChanged">
-                        <i:InvokeCommandAction Command="{Binding SelectedThickCommand}" CommandParameter="{Binding ElementName=thickness,Path=Value}"/>
+                        <i:InvokeCommandAction Command="{Binding SelectedThickCommand}" CommandParameter="{Binding ElementName=thickness,Path=Value}" />
                     </i:EventTrigger>
                 </i:Interaction.Triggers>
             </CompositeControl:SlidComboControl>
@@ -270,31 +264,29 @@
             <StackPanel  x:Name="PnlLineStyle" Orientation="Horizontal" Margin="0,20,0,0">
 
                 <RadioButton x:Name="BtnSolid" Tag="Solid" GroupName="LineMode"
-                                 Width="105" Height="32" Margin="0,0,10,0" Foreground="#616469"
-                                 VerticalContentAlignment="Center" Background="Transparent"
-                                 Command="{Binding LineStyleCommand}"
-                                 CommandParameter="{Binding ElementName=BtnSolid, Path=Tag}" 
-                                 IsChecked="{Binding BasicVm.IsSolidLine}"
-                                 Style="{DynamicResource GreyBgRadioBtnStyle}">
+                             Width="105" Height="32" Margin="0,0,10,0" Foreground="#616469"
+                             VerticalContentAlignment="Center" Background="Transparent"
+                             Command="{Binding LineStyleCommand}"
+                             CommandParameter="{Binding ElementName=BtnSolid, Path=Tag}"
+                             IsChecked="{Binding BasicVm.IsSolidLine}"
+                             Style="{DynamicResource GreyBgRadioBtnStyle}">
                     <RadioButton.Content>
                         <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" />
                     </RadioButton.Content>
                 </RadioButton>
 
                 <RadioButton x:Name="BtnDashed" Tag="Dashed" GroupName="LineMode"
-                                 Width="105" Height="32" Margin="0,0" Foreground="#616469"
-                                 VerticalContentAlignment="Center" Background="Transparent"
-                                 Command="{Binding LineStyleCommand}"
-                                 CommandParameter="{Binding ElementName=BtnDashed, Path=Tag}"
-                                 IsChecked="{Binding BasicVm.IsDashLine}"
-                                 Style="{DynamicResource GreyBgRadioBtnStyle}">
+                             Width="105" Height="32" Margin="0,0" Foreground="#616469"
+                             VerticalContentAlignment="Center" Background="Transparent"
+                             Command="{Binding LineStyleCommand}"
+                             CommandParameter="{Binding ElementName=BtnDashed, Path=Tag}"
+                             IsChecked="{Binding BasicVm.IsDashLine}"
+                             Style="{DynamicResource GreyBgRadioBtnStyle}">
                     <RadioButton.Content>
-                        <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" StrokeDashArray="2"/>
+                        <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" StrokeDashArray="2" />
                     </RadioButton.Content>
                 </RadioButton>
-
             </StackPanel>
-
         </StackPanel>
     </Grid>
-</UserControl>
+</UserControl>

+ 50 - 50
PDF Office/Views/PropertyPanel/AnnotPanel/SignatureAnnotProperty.xaml

@@ -1,125 +1,125 @@
 <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.SignatureAnnotProperty"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
-             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+             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:customcontrol="clr-namespace:PDF_Office.CustomControl" xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel" xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert" d:DataContext="{d:DesignInstance Type=annotpanel:SignatureAnnotPropertyViewModel}"
              KeyDown="UserControl_KeyDown"
-             Loaded="UserControl_Loaded"
-             mc:Ignorable="d" >
+             Loaded="UserControl_Loaded" Background="{StaticResource color.sys.layout.mg}"
+             mc:Ignorable="d">
     <UserControl.Resources>
         <PathGeometry x:Key="Ic_AddButtonPath" Figures="M13.5 8C13.5 11.0376 11.0376 13.5 8 13.5C4.96243 13.5 2.5 11.0376 2.5 8C2.5 4.96243 4.96243 2.5 8 2.5C11.0376 2.5 13.5 4.96243 13.5 8ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM7.25005 4.80003V7.25003H4.80005V8.75003H7.25005V11.2H8.75005V8.75003H11.2V7.25003H8.75005V4.80003H7.25005Z"  FillRule="EvenOdd" />
-        <dataconvert:ListCountToVisible x:Key="ListCountToVisible"/>
-        <dataconvert:UnVisivleConvert x:Key="UnVisivleConvert"/>
-        <SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA"/>
-        <SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="#FFDADADA"/>
+        <dataconvert:ListCountToVisible x:Key="ListCountToVisible" />
+        <dataconvert:UnVisivleConvert x:Key="UnVisivleConvert" />
+        <SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA" />
+        <SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="#FFDADADA" />
     </UserControl.Resources>
-    <Grid  Background="Transparent">
+    <Grid  Background="{StaticResource color.sys.layout.mg}">
         <Grid.RowDefinitions>
-            <RowDefinition Height="50"/> 
-            <RowDefinition Height="*"/>
+            <RowDefinition Height="50" />
+            <RowDefinition Height="*" />
         </Grid.RowDefinitions>
         <Grid.ColumnDefinitions>
-            <ColumnDefinition Width="16"/>
-            <ColumnDefinition Width="*"/>
-            <ColumnDefinition Width="16"/>
+            <ColumnDefinition Width="16" />
+            <ColumnDefinition Width="*" />
+            <ColumnDefinition Width="16" />
         </Grid.ColumnDefinitions>
-        <Grid x:Name="Header" Grid.Column="1" >
+        <Grid x:Name="Header" Grid.Column="1">
             <Grid.ColumnDefinitions>
-                <ColumnDefinition Width="16"/>
-                <ColumnDefinition Width="*"/>
-                <ColumnDefinition Width="16"/>
+                <ColumnDefinition Width="16" />
+                <ColumnDefinition Width="*" />
+                <ColumnDefinition Width="16" />
             </Grid.ColumnDefinitions>
             <TextBlock Grid.Column="1" x:Name="TxtTitle" HorizontalAlignment="Left"
-                    VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold"/>
+                    VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" />
             <customcontrol:PathButton Grid.Column="1"
             HorizontalAlignment="Right"
             HorizontalContentAlignment="Center"
             x:Name="BtnAdd"
             BorderThickness="1"
-            CornerRadius="4"                         
+            CornerRadius="4"
             Command="{Binding ShowDialogCommand}"
-            Height="32" Width="32"  IconHeight="16"  IconWidth="16" 
+            Height="32" Width="32"  IconHeight="16"  IconWidth="16"
             Icon="{StaticResource Ic_AddButtonPath}"  IconFill="#585A63"
             IconPress="{StaticResource Ic_AddButtonPath}" IconPressFill="#585A63"
             IconMouseOver="{StaticResource Ic_AddButtonPath}" IconMouseOverFill="#585A63"
             MouseOverBackground="{StaticResource color.item-state.hov.bg}"
-            MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"                          
-            MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}"/>
+            MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"
+            MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}" />
         </Grid>
         <Grid Grid.Row="1" Grid.Column="1">
             <StackPanel VerticalAlignment="Center" x:Name="NoSignatureStackPanel" Visibility="{Binding SignatureList.Count, Converter={StaticResource ListCountToVisible}}">
                 <Image Width="128" Height="128" Source="pack://application:,,,/PDF Office;component/Resources/PropertyPanel/nosign.png" />
-                <TextBlock Text="No signature created" FontSize="14" FontFamily="Segoe UI" Height="22" HorizontalAlignment="Center"/>
-                <TextBlock Width="168" Text="Click the Add button in the upper right corner to create a new signature." FontSize="12" FontFamily="Segoe UI" TextWrapping="Wrap" Foreground="#94989C" HorizontalAlignment="Center"/>
+                <TextBlock Text="No signature created" FontSize="14" FontFamily="Segoe UI" Height="22" HorizontalAlignment="Center" />
+                <TextBlock Width="168" Text="Click the Add button in the upper right corner to create a new signature." FontSize="12" FontFamily="Segoe UI" TextWrapping="Wrap" Foreground="#94989C" HorizontalAlignment="Center" />
             </StackPanel>
-            <ListBox ItemsSource="{Binding SignatureList}"  
+            <ListBox ItemsSource="{Binding SignatureList}"
                      SelectedIndex="{Binding CurrentListboxIndex,Mode=TwoWay}"
                      Visibility="{Binding ElementName=NoSignatureStackPanel,Path=Visibility,Converter={StaticResource UnVisivleConvert}}"
                      SelectionMode="Single" Height="auto" VerticalAlignment="Stretch"  BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                 <ListBox.ItemTemplate>
-                    <DataTemplate >
+                    <DataTemplate>
                         <Grid>
                             <Grid.ContextMenu>
                                 <ContextMenu>
                                     <MenuItem Header="导出签名">
-                                        <MenuItem x:Name="SavePNG" Header="PNG" Tag="PNG" Click="Save_Click"/>
-                                        <MenuItem x:Name="SavePDF" Header="PDF" Tag="PDF" Click="Save_Click"/>
+                                        <MenuItem x:Name="SavePNG" Header="PNG" Tag="PNG" Click="Save_Click" />
+                                        <MenuItem x:Name="SavePDF" Header="PDF" Tag="PDF" Click="Save_Click" />
                                     </MenuItem>
-                                    <MenuItem x:Name="Delete" Header="删除签名" Click="Delete_Click"/>
-                                    <MenuItem x:Name="DeleteAll" Header="删除全部签名" Click="DeleteAll_Click"/>
+                                    <MenuItem x:Name="Delete" Header="删除签名" Click="Delete_Click" />
+                                    <MenuItem x:Name="DeleteAll" Header="删除全部签名" Click="DeleteAll_Click" />
                                 </ContextMenu>
                             </Grid.ContextMenu>
-                            <Image Source="{Binding SourcePath}" Stretch="Uniform" Height="48"/>
+                            <Image Source="{Binding SourcePath}" Stretch="Uniform" Height="48" />
                         </Grid>
                     </DataTemplate>
                 </ListBox.ItemTemplate>
                 <ListBox.ItemContainerStyle>
                     <Style TargetType="ListBoxItem">
-                        <Setter Property="Height" Value="65"/>
-                        <Setter Property="Padding" Value="8"/>
-                        <Setter Property="HorizontalContentAlignment" Value="Center"/>
+                        <Setter Property="Height" Value="65" />
+                        <Setter Property="Padding" Value="8" />
+                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                         <Setter Property="Template">
                             <Setter.Value>
                                 <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                     <Border x:Name="Bd" CornerRadius="8" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
-                                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+                                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                     </Border>
                                     <ControlTemplate.Triggers>
                                         <MultiTrigger>
                                             <MultiTrigger.Conditions>
-                                                <Condition Property="IsMouseOver" Value="True"/>
+                                                <Condition Property="IsMouseOver" Value="True" />
                                             </MultiTrigger.Conditions>
-                                            <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
-                                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
+                                            <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}" />
+                                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}" />
                                         </MultiTrigger>
                                         <MultiTrigger>
                                             <MultiTrigger.Conditions>
-                                                <Condition Property="Selector.IsSelectionActive" Value="False"/>
-                                                <Condition Property="IsSelected" Value="True"/>
+                                                <Condition Property="Selector.IsSelectionActive" Value="False" />
+                                                <Condition Property="IsSelected" Value="True" />
                                             </MultiTrigger.Conditions>
-                                            <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/>
-                                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}"/>
+                                            <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}" />
+                                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}" />
                                         </MultiTrigger>
                                         <MultiTrigger>
                                             <MultiTrigger.Conditions>
-                                                <Condition Property="Selector.IsSelectionActive" Value="True"/>
-                                                <Condition Property="IsSelected" Value="True"/>
+                                                <Condition Property="Selector.IsSelectionActive" Value="True" />
+                                                <Condition Property="IsSelected" Value="True" />
                                             </MultiTrigger.Conditions>
-                                            <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.sel.bg.lv3}"/>
-                                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.sel.border.lv3}"/>
+                                            <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.sel.bg.lv3}" />
+                                            <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.sel.border.lv3}" />
                                         </MultiTrigger>
                                         <Trigger Property="IsEnabled" Value="False">
-                                            <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
+                                            <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
                                         </Trigger>
                                     </ControlTemplate.Triggers>
                                 </ControlTemplate>
                             </Setter.Value>
                         </Setter>
-                        <EventSetter Event="PreviewMouseDown" Handler="ListBoxItem_PreviewMouseDown"/>
+                        <EventSetter Event="PreviewMouseDown" Handler="ListBoxItem_PreviewMouseDown" />
                     </Style>
                 </ListBox.ItemContainerStyle>
             </ListBox>
         </Grid>
     </Grid>
-</UserControl>
+</UserControl>

Файловите разлики са ограничени, защото са твърде много
+ 55 - 58
PDF Office/Views/PropertyPanel/AnnotPanel/StickyNoteProperty.xaml


+ 116 - 65
PDF Office/Views/PropertyPanel/AnnotPanel/TextAnnotProperty.xaml

@@ -1,96 +1,147 @@
-<UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.TextAnnotProperty"
-             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             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:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
-             xmlns:cus="clr-namespace:PDF_Office.CustomControl"
-             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
-             xmlns:prism="http://prismlibrary.com/"             
-             prism:ViewModelLocator.AutoWireViewModel="True"
-             xmlns:AnnotPanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
-             d:DataContext="{d:DesignInstance Type=AnnotPanel:TextAnnotPropertyViewModel}"
-             xmlns:Convert="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
-             xmlns:mainpage="clr-namespace:PDF_Office.Strings.MainPage"
-             xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert"
-             mc:Ignorable="d" 
-             d:DesignHeight="450" d:DesignWidth="800">
+<UserControl
+    x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.TextAnnotProperty"
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+    xmlns:AnnotPanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
+    xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
+    xmlns:Convert="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
+    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+    xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert"
+    xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
+    xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
+    xmlns:mainpage="clr-namespace:PDF_Office.Strings.MainPage"
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    xmlns:prism="http://prismlibrary.com/"
+    d:DataContext="{d:DesignInstance Type=AnnotPanel:TextAnnotPropertyViewModel}"
+    d:DesignHeight="450"
+    d:DesignWidth="260"
+    prism:ViewModelLocator.AutoWireViewModel="True"
+    Background="{StaticResource color.sys.layout.mg}"
+    mc:Ignorable="d">
     <UserControl.Resources>
         <ResourceDictionary>
             <ResourceDictionary.MergedDictionaries>
-                <ResourceDictionary Source="../../../Styles/SliderStyle.xaml"></ResourceDictionary>
+                <ResourceDictionary Source="../../../Styles/SliderStyle.xaml" />
             </ResourceDictionary.MergedDictionaries>
-            <Convert:AnnotArgsTypeConverter x:Key="AnnotArgsTypeConverter"/>
-            <dataconvert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert"/>
+            <Convert:AnnotArgsTypeConverter x:Key="AnnotArgsTypeConverter" />
+            <dataconvert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert" />
         </ResourceDictionary>
-      
     </UserControl.Resources>
-    <Grid  VerticalAlignment="Stretch" Background="#F3F3F3">
-        <StackPanel Margin="16 0 16 0">
-            <TextBlock Name="AnnotTypeTitle" FontFamily="Segoe UI" FontWeight="Bold" FontSize="18" LineHeight="24" HorizontalAlignment="Left" Margin="0,16,0,8"
-                       Text="{Binding BasicVm.AnnotTypeTitle,Mode=OneWay}"
-                       ></TextBlock>
-            
-            <Border Width="228" Height="100" BorderThickness="1" CornerRadius="2" BorderBrush="#DDDDDD" Background="White" Margin="0,8,0,0"
-                     Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
-                    >
+    <Grid VerticalAlignment="Stretch" Background="#F3F3F3">
+        <StackPanel Margin="16,0,16,0">
+            <TextBlock
+                Name="AnnotTypeTitle"
+                Margin="0,16,0,8"
+                HorizontalAlignment="Left"
+                FontFamily="Segoe UI"
+                FontSize="18"
+                FontWeight="Bold"
+                LineHeight="24"
+                Text="{Binding BasicVm.AnnotTypeTitle, Mode=OneWay}" />
+
+            <Border
+                Width="228"
+                Height="100"
+                Margin="0,8,0,0"
+                Background="White"
+                BorderBrush="#DDDDDD"
+                BorderThickness="1"
+                CornerRadius="2"
+                Visibility="{Binding BasicVm.IsMultiSelected, Converter={StaticResource InvertBoolToVisibleConvert}}">
                 <Grid>
                     <Grid.ColumnDefinitions>
-                        <ColumnDefinition Width="*"/>
-                        <ColumnDefinition Width="Auto"/>
-                        <ColumnDefinition Width="*"/>
+                        <ColumnDefinition Width="*" />
+                        <ColumnDefinition Width="Auto" />
+                        <ColumnDefinition Width="*" />
                     </Grid.ColumnDefinitions>
                     <Grid.RowDefinitions>
-                        <RowDefinition Height="*"/>
-                        <RowDefinition Height="Auto"/>
-                        <RowDefinition Height="*"/>
+                        <RowDefinition Height="*" />
+                        <RowDefinition Height="Auto" />
+                        <RowDefinition Height="*" />
                     </Grid.RowDefinitions>
-                    <Rectangle Grid.Row="1" Grid.Column="1"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
-                               Opacity="{Binding BasicVm.FillOpacity}"
-                               Fill="{Binding BasicVm.FontColor}" Visibility="{Binding BasicVm.AnnotType,Converter={StaticResource AnnotArgsTypeConverter},ConverterParameter=AnnotHighlight}" />
-                  
-                    <Rectangle Grid.Row="1" Grid.Column="1" Height="2" StrokeThickness="2" HorizontalAlignment="Stretch"
-                               Opacity="{Binding BasicVm.FillOpacity}"
-                               Stroke="{Binding BasicVm.FontColor}" Visibility="{Binding BasicVm.AnnotType,Converter={StaticResource AnnotArgsTypeConverter},ConverterParameter=AnnotStrikeout}"/>
-                    
-                    <Rectangle Grid.Row="1" Grid.Column="1" VerticalAlignment="Bottom"  Height="2" StrokeThickness="2" HorizontalAlignment="Stretch" 
-                               Opacity="{Binding BasicVm.FillOpacity}"
-                               Stroke="{Binding BasicVm.FontColor}" Visibility="{Binding BasicVm.AnnotType,Converter={StaticResource AnnotArgsTypeConverter},ConverterParameter=AnnotUnderline}" />
+                    <Rectangle
+                        Grid.Row="1"
+                        Grid.Column="1"
+                        HorizontalAlignment="Stretch"
+                        VerticalAlignment="Stretch"
+                        Fill="{Binding BasicVm.FontColor}"
+                        Opacity="{Binding BasicVm.FillOpacity}"
+                        Visibility="{Binding BasicVm.AnnotType, Converter={StaticResource AnnotArgsTypeConverter}, ConverterParameter=AnnotHighlight}" />
+
+                    <Rectangle
+                        Grid.Row="1"
+                        Grid.Column="1"
+                        Height="2"
+                        HorizontalAlignment="Stretch"
+                        Opacity="{Binding BasicVm.FillOpacity}"
+                        Stroke="{Binding BasicVm.FontColor}"
+                        StrokeThickness="2"
+                        Visibility="{Binding BasicVm.AnnotType, Converter={StaticResource AnnotArgsTypeConverter}, ConverterParameter=AnnotStrikeout}" />
 
-                    <TextBlock Name="SampleText" Padding="4,2,4,2" Grid.Row="1" Grid.Column="1" Text="{x:Static mainpage:MainPage.Sample}" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" FontFamily="Segoe UI" FontSize="18" >
-                    </TextBlock>
+                    <Rectangle
+                        Grid.Row="1"
+                        Grid.Column="1"
+                        Height="2"
+                        HorizontalAlignment="Stretch"
+                        VerticalAlignment="Bottom"
+                        Opacity="{Binding BasicVm.FillOpacity}"
+                        Stroke="{Binding BasicVm.FontColor}"
+                        StrokeThickness="2"
+                        Visibility="{Binding BasicVm.AnnotType, Converter={StaticResource AnnotArgsTypeConverter}, ConverterParameter=AnnotUnderline}" />
+
+                    <TextBlock
+                        Name="SampleText"
+                        Grid.Row="1"
+                        Grid.Column="1"
+                        Padding="4,2,4,2"
+                        HorizontalAlignment="Center"
+                        VerticalAlignment="Center"
+                        FontFamily="Segoe UI"
+                        FontSize="18"
+                        FontWeight="Bold"
+                        Text="{x:Static mainpage:MainPage.Sample}" />
                 </Grid>
             </Border>
 
             <Grid Margin="0,18,0,0">
                 <Grid.RowDefinitions>
-                    <RowDefinition Height="auto"/>
-                    <RowDefinition/>
+                    <RowDefinition Height="auto" />
+                    <RowDefinition />
                 </Grid.RowDefinitions>
-                <CompositeControl:SlidContent x:Name="SlidOpacity" Margin="0,0,5,0" HorizontalAlignment="Right" 
-                                              InitValue="{Binding BasicVm.FillOpacity,Mode=OneWay}"
-                                              Visibility="{Binding BasicVm.IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}">
+                <CompositeControl:SlidContent
+                    x:Name="SlidOpacity"
+                    Margin="0,0,5,0"
+                    HorizontalAlignment="Right"
+                    InitValue="{Binding BasicVm.FillOpacity, Mode=OneWay}"
+                    Visibility="{Binding BasicVm.IsMultiSelected, Converter={StaticResource InvertBoolToVisibleConvert}}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedValueChanged">
-                            <i:InvokeCommandAction Command="{Binding SelectedOpacityChangedCommand}" CommandParameter="{Binding ElementName=SlidOpacity,Path=Value}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedOpacityChangedCommand}" CommandParameter="{Binding ElementName=SlidOpacity, Path=Value}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:SlidContent>
-                <TextBlock Text="Color"  Foreground="{StaticResource color.sys.text.neutral.lv2}" FontSize="12" FontFamily="Segoe UI" HorizontalAlignment="Left"/>
-               
-                <CompositeControl:ColorContent Grid.Row="1" x:Name="cusColor" Margin="0,8,0,0"
-                                               ItemSource="{Binding BasicVm.ColorItems}"
-                                               ColorType="{Binding ColorType}"
-                                               UIColor="{Binding BasicVm.CurrentFontColor,Mode=OneWay}" >
+                <TextBlock
+                    HorizontalAlignment="Left"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="{StaticResource color.sys.text.neutral.lv2}"
+                    Text="Color" />
+
+                <CompositeControl:ColorContent
+                    x:Name="cusColor"
+                    Grid.Row="1"
+                    Margin="0,8,0,0"
+                    ColorType="{Binding ColorType}"
+                    ItemSource="{Binding BasicVm.ColorItems}"
+                    UIColor="{Binding BasicVm.CurrentFontColor, Mode=OneWay}">
                     <i:Interaction.Triggers>
                         <i:EventTrigger EventName="SelectedColorInvoke">
-                            <i:InvokeCommandAction Command="{Binding SelectedColorChangedCommand}" CommandParameter="{Binding ElementName=cusColor,Path=SelectedColor}"/>
+                            <i:InvokeCommandAction Command="{Binding SelectedColorChangedCommand}" CommandParameter="{Binding ElementName=cusColor, Path=SelectedColor}" />
                         </i:EventTrigger>
                     </i:Interaction.Triggers>
                 </CompositeControl:ColorContent>
             </Grid>
-            
         </StackPanel>
     </Grid>
-</UserControl>
+</UserControl>

+ 34 - 24
PDF Office/Views/PropertyPanel/PropertyPanelContent.xaml

@@ -1,31 +1,41 @@
-<UserControl x:Class="PDF_Office.Views.PropertyPanel.PropertyPanelContent"
-             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-             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"
-             xmlns:AnnotPanel="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
-              xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
-             xmlns:prism="http://prismlibrary.com/"             
-             prism:ViewModelLocator.AutoWireViewModel="True"
-             xmlns:PropertyPanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel"
-             d:DataContext="{d:DesignInstance Type=PropertyPanel:PropertyPanelContentViewModel}"
-             mc:Ignorable="d" 
-             d:DesignHeight="450" d:DesignWidth="800">
+<UserControl
+    x:Class="PDF_Office.Views.PropertyPanel.PropertyPanelContent"
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+    xmlns:AnnotPanel="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
+    xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
+    xmlns:PropertyPanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel"
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+    xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel"
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    xmlns:prism="http://prismlibrary.com/"
+    d:DataContext="{d:DesignInstance Type=PropertyPanel:PropertyPanelContentViewModel}"
+    d:DesignHeight="450"
+    d:DesignWidth="800"
+    prism:ViewModelLocator.AutoWireViewModel="True"
+    Background="{StaticResource color.sys.layout.mg}"
+    mc:Ignorable="d">
     <UserControl.Resources>
-        <Convert:PropertyPanelVisible x:Key="PropertyPanelVisible"/>
+        <Convert:PropertyPanelVisible x:Key="PropertyPanelVisible" />
     </UserControl.Resources>
-    <Grid  VerticalAlignment="Stretch">
+    <Grid VerticalAlignment="Stretch">
 
         <Grid>
-            <StackPanel VerticalAlignment="Center" x:Name="NoStampStackPanel">
-                <Image Width="128" Height="128" Source="pack://application:,,,/PDF Office;component/Resources/PropertyPanel/EmptyAnnot.png" />
-                <TextBlock  Width="128" FontSize="12" FontFamily="Segoe UI" TextWrapping="Wrap" Foreground="#94989C"
-                            Text="Show/Hide Annotation Properties Panel" TextAlignment="Center"
-                            HorizontalAlignment="Center"/>
-              
+            <StackPanel x:Name="NoStampStackPanel" VerticalAlignment="Center">
+                <Image
+                    Width="128"
+                    Height="128"
+                    Source="pack://application:,,,/PDF Office;component/Resources/PropertyPanel/EmptyAnnot.png" />
+                <TextBlock
+                    Width="128"
+                    HorizontalAlignment="Center"
+                    FontFamily="Segoe UI"
+                    FontSize="12"
+                    Foreground="#94989C"
+                    Text="Show/Hide Annotation Properties Panel"
+                    TextAlignment="Center"
+                    TextWrapping="Wrap" />
             </StackPanel>
         </Grid>
-     
     </Grid>
-</UserControl>
+</UserControl>

+ 14 - 4
PDF Office/Views/ViewContent.xaml.cs

@@ -64,23 +64,33 @@ namespace PDF_Office.Views
             eventAggregator.GetEvent<SplitEvent>().Subscribe(ChangeSplitModeUI, e => e.Unicode == unicode);
 
             eventAggregator.GetEvent<ReadModeEvent>().Subscribe(ChangeReadModeUI, e => e.Unicode == unicode);
+
+            eventAggregator.GetEvent<ReadModePropertyOpenEvent>().Subscribe(ChangeReadModePropertyOpenUI, e => e.Unicode == unicode);
+        }
+
+        private void ChangeReadModePropertyOpenUI(ReadModePropertyOpenArgs obj)
+        {
+            Grid.SetColumnSpan(GridViewer, 3);
+            Grid.SetColumn(GridViewer, 0);
+            Grid.SetColumn(Scroller, 4);
         }
 
         private void ChangeReadModeUI(ReadModeArgs obj)
         {
             if (obj.IsReadMode)
             {
+                this.TbtnProperty.IsChecked = false;
                 Grid.SetRowSpan(DocumentView, 4);
                 Grid.SetRow(DocumentView, 0);
-
-                Grid.SetColumnSpan(GridViewer, 4);
+                Grid.SetColumnSpan(GridViewer,4);
                 Grid.SetColumn(GridViewer, 0);
             }
             else
             {
-                //Grid.SetRowSpan(DocumentView, 0);
+                //this.TbtnProperty.IsChecked=true;
+                Grid.SetRowSpan(DocumentView, 1);
                 Grid.SetRow(DocumentView, 2);
-
+                Grid.SetColumnSpan(GridViewer, 1);
                 Grid.SetColumn(GridViewer, 2);
             }
         }