|
@@ -3,24 +3,24 @@
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
|
|
xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
|
|
- xmlns:FormControl="clr-namespace:PDF_Office.CustomControl.Form"
|
|
|
|
xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
|
|
xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
|
|
|
|
+ xmlns:FormControl="clr-namespace:PDF_Office.CustomControl.Form"
|
|
xmlns:cus="clr-namespace:PDF_Office.CustomControl"
|
|
xmlns:cus="clr-namespace:PDF_Office.CustomControl"
|
|
xmlns:cusColor="clr-namespace:PDF_Office.CustomControl.CompositeControl"
|
|
xmlns:cusColor="clr-namespace:PDF_Office.CustomControl.CompositeControl"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
+ xmlns:form="clr-namespace:PDF_Office.CustomControl.Form"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel"
|
|
xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:pdfedit="clr-namespace:PDF_Office.Views.PropertyPanel.PDFEdit"
|
|
xmlns:pdfedit="clr-namespace:PDF_Office.Views.PropertyPanel.PDFEdit"
|
|
- xmlns:form="clr-namespace:PDF_Office.CustomControl.Form"
|
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
- prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
d:DesignHeight="450"
|
|
d:DesignHeight="450"
|
|
- d:DesignWidth="800"
|
|
|
|
-
|
|
|
|
|
|
+ d:DesignWidth="260"
|
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
+ Background="{StaticResource color.sys.layout.mg}"
|
|
Loaded="UserControl_Loaded"
|
|
Loaded="UserControl_Loaded"
|
|
mc:Ignorable="d">
|
|
mc:Ignorable="d">
|
|
- <!--d:DataContext="{d:DesignInstance Type=pdfedit:TextEditPropertyViewModel}"-->
|
|
|
|
|
|
+ <!-- d:DataContext="{d:DesignInstance Type=pdfedit:TextEditPropertyViewModel}" -->
|
|
<UserControl.Resources>
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
@@ -57,7 +57,7 @@
|
|
|
|
|
|
</ResourceDictionary>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
</UserControl.Resources>
|
|
- <Grid Background="#F3F3F3">
|
|
|
|
|
|
+ <Grid Margin="16,14">
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
@@ -67,20 +67,19 @@
|
|
<StackPanel Visibility="{Binding IsTextEdit, Converter={StaticResource BoolToVisible}}">
|
|
<StackPanel Visibility="{Binding IsTextEdit, Converter={StaticResource BoolToVisible}}">
|
|
<TextBlock
|
|
<TextBlock
|
|
Name="AnnotTypeTitle"
|
|
Name="AnnotTypeTitle"
|
|
- Margin="10,8,0,0"
|
|
|
|
HorizontalAlignment="Left"
|
|
HorizontalAlignment="Left"
|
|
- FontFamily="Segoe UI Semibold"
|
|
|
|
- FontSize="18"
|
|
|
|
|
|
+ FontFamily="Segoe UI"
|
|
|
|
+ FontSize="14"
|
|
FontWeight="SemiBold"
|
|
FontWeight="SemiBold"
|
|
- LineHeight="24">
|
|
|
|
|
|
+ LineHeight="22">
|
|
Freetext
|
|
Freetext
|
|
</TextBlock>
|
|
</TextBlock>
|
|
<Border
|
|
<Border
|
|
Width="228"
|
|
Width="228"
|
|
- Height="100"
|
|
|
|
|
|
+ Height="88"
|
|
Margin="0,8,0,0"
|
|
Margin="0,8,0,0"
|
|
- Background="White"
|
|
|
|
- BorderBrush="#DDDDDD"
|
|
|
|
|
|
+ Background="{StaticResource color.field.bg.def}"
|
|
|
|
+ BorderBrush="{StaticResource color.field.border.norm}"
|
|
BorderThickness="1"
|
|
BorderThickness="1"
|
|
CornerRadius="2">
|
|
CornerRadius="2">
|
|
<Grid>
|
|
<Grid>
|
|
@@ -133,65 +132,273 @@
|
|
|
|
|
|
<Border
|
|
<Border
|
|
Height="32"
|
|
Height="32"
|
|
- Margin="12,0,4,0"
|
|
|
|
|
|
+ Margin="0,8,0,18"
|
|
BorderBrush="#E2E3E6"
|
|
BorderBrush="#E2E3E6"
|
|
BorderThickness="0">
|
|
BorderThickness="0">
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
|
- <CompositeControl:CustomComboControl x:Name="FontTitleBox" Width="148"
|
|
|
|
- ItemSource="{Binding PresetTextItems}" SelectedItems="{Binding PresetTextData,Mode=TwoWay}"
|
|
|
|
- IsValueContent="True" Height="32">
|
|
|
|
- </CompositeControl:CustomComboControl>
|
|
|
|
|
|
+ <Grid>
|
|
|
|
+ <CompositeControl:CustomComboControl
|
|
|
|
+ x:Name="FontTitleBox"
|
|
|
|
+ Width="188"
|
|
|
|
+ Height="32"
|
|
|
|
+ HorizontalAlignment="Left"
|
|
|
|
+ IsValueContent="True"
|
|
|
|
+ ItemSource="{Binding PresetTextItems}"
|
|
|
|
+ SelectedItems="{Binding PresetTextData, Mode=TwoWay}" />
|
|
|
|
+
|
|
|
|
|
|
-
|
|
|
|
<Button
|
|
<Button
|
|
Width="32"
|
|
Width="32"
|
|
Height="32"
|
|
Height="32"
|
|
- ContextMenu="{StaticResource BtnFlyoutMenu}" />
|
|
|
|
- </StackPanel>
|
|
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ ContextMenu="{StaticResource BtnFlyoutMenu}"
|
|
|
|
+ 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}" />
|
|
|
|
+ </Button>
|
|
|
|
+ </Grid>
|
|
</Border>
|
|
</Border>
|
|
|
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
<TextBlock
|
|
<TextBlock
|
|
- Margin="0,18,0,10"
|
|
|
|
|
|
+ Margin="0,0,0,10"
|
|
Style="{StaticResource PropertyHeaderLv2}"
|
|
Style="{StaticResource PropertyHeaderLv2}"
|
|
Text="文本" />
|
|
Text="文本" />
|
|
|
|
|
|
- <Grid Margin="0,6,0,0">
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
- <Grid.RowDefinitions>
|
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
|
- </Grid.RowDefinitions>
|
|
|
|
-
|
|
|
|
- <CompositeControl:CustomComboControl x:Name="FontFamilyBox" HorizontalAlignment="Left"
|
|
|
|
- ItemSource="{Binding FontFamilyItems}" SelectedItems="{Binding FontFamilyData,Mode=TwoWay}"
|
|
|
|
- IsValueContent="True" Grid.ColumnSpan="2" Width="168" Height="32">
|
|
|
|
- </CompositeControl:CustomComboControl>
|
|
|
|
-
|
|
|
|
- <CompositeControl:CustomComboControl x:Name="FontStyleBox" Grid.Row="1"
|
|
|
|
- Width="148" Height="32" Margin="12,8,4,0"
|
|
|
|
- ItemSource="{Binding FontStyleItems}" SelectedItems="{Binding FontWeightStyleItem,Mode=TwoWay}"
|
|
|
|
- IsValueContent="True" Grid.Column="0">
|
|
|
|
- </CompositeControl:CustomComboControl>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <CompositeControl:CustomComboControl x:Name="FontSizeBox" Grid.Row="0" Grid.Column="1" SelectedItems="{Binding FontSizeData,Mode=TwoWay}"
|
|
|
|
- Width="80" Height="32" Margin="-1,0,0,0"
|
|
|
|
- >
|
|
|
|
- </CompositeControl:CustomComboControl>
|
|
|
|
|
|
+ <StackPanel>
|
|
|
|
+ <CompositeControl:CustomComboControl
|
|
|
|
+ x:Name="FontFamilyBox"
|
|
|
|
+ Height="32"
|
|
|
|
+ IsValueContent="True"
|
|
|
|
+ ItemSource="{Binding FontFamilyItems}"
|
|
|
|
+ SelectedItems="{Binding FontFamilyData, Mode=TwoWay}" />
|
|
|
|
+
|
|
|
|
+ <Grid Margin="0,8">
|
|
|
|
+ <CompositeControl:CustomComboControl
|
|
|
|
+ x:Name="FontStyleBox"
|
|
|
|
+ Width="110"
|
|
|
|
+ Height="32"
|
|
|
|
+ HorizontalAlignment="Left"
|
|
|
|
+ IsValueContent="True"
|
|
|
|
+ ItemSource="{Binding FontStyleItems}"
|
|
|
|
+ SelectedItems="{Binding FontWeightStyleItem, Mode=TwoWay}" />
|
|
|
|
|
|
|
|
|
|
- <cusColor:ColorSubContent
|
|
|
|
- x:Name="FontColorBox"
|
|
|
|
- Grid.Row="1"
|
|
|
|
- Grid.Column="1"
|
|
|
|
- HorizontalAlignment="Left" />
|
|
|
|
- </Grid>
|
|
|
|
-
|
|
|
|
|
|
+ <CompositeControl:CustomComboControl
|
|
|
|
+ x:Name="FontSizeBox"
|
|
|
|
+ Width="110"
|
|
|
|
+ Height="32"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ SelectedItems="{Binding FontSizeData, Mode=TwoWay}" />
|
|
|
|
+ </Grid>
|
|
|
|
+ <Grid>
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="TextAlignLeftBtn"
|
|
|
|
+ Width="32"
|
|
|
|
+ Height="32"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ Foreground="#616469"
|
|
|
|
+ GroupName="TextAlign"
|
|
|
|
+ IsChecked="True"
|
|
|
|
+ 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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ 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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ Canvas.Top="8.25"
|
|
|
|
+ Width="14"
|
|
|
|
+ Height="1.5"
|
|
|
|
+ Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ </Canvas>
|
|
|
|
+ </Grid>
|
|
|
|
+ </RadioButton.Content>
|
|
|
|
+ <i:Interaction.Triggers>
|
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignLeftBtn, Path=Tag}" />
|
|
|
|
+ </i:EventTrigger>
|
|
|
|
+ </i:Interaction.Triggers>
|
|
|
|
+ </RadioButton>
|
|
|
|
+
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="TextAlignCenterBtn"
|
|
|
|
+ Width="32"
|
|
|
|
+ Height="32"
|
|
|
|
+ Margin="8,0"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ Foreground="#616469"
|
|
|
|
+ GroupName="TextAlign"
|
|
|
|
+ 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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ 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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ Canvas.Top="8.25"
|
|
|
|
+ Width="14"
|
|
|
|
+ Height="1.5"
|
|
|
|
+ Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ </Canvas>
|
|
|
|
+ </Grid>
|
|
|
|
+ </RadioButton.Content>
|
|
|
|
+ <i:Interaction.Triggers>
|
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignCenterBtn, Path=Tag}" />
|
|
|
|
+ </i:EventTrigger>
|
|
|
|
+ </i:Interaction.Triggers>
|
|
|
|
+ </RadioButton>
|
|
|
|
+
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="TextAlignRightBtn"
|
|
|
|
+ Grid.Column="2"
|
|
|
|
+ Width="32"
|
|
|
|
+ Height="32"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ Foreground="#616469"
|
|
|
|
+ GroupName="TextAlign"
|
|
|
|
+ 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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ 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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ Canvas.Top="8.25"
|
|
|
|
+ Width="14"
|
|
|
|
+ Height="1.5"
|
|
|
|
+ Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ </Canvas>
|
|
|
|
+ </Grid>
|
|
|
|
+ </RadioButton.Content>
|
|
|
|
+ <i:Interaction.Triggers>
|
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignRightBtn, Path=Tag}" />
|
|
|
|
+ </i:EventTrigger>
|
|
|
|
+ </i:Interaction.Triggers>
|
|
|
|
+ </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}"
|
|
|
|
+ Tag="Align">
|
|
|
|
+ <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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ 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" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ Canvas.Top="12.25"
|
|
|
|
+ Width="14"
|
|
|
|
+ Height="1.5"
|
|
|
|
+ Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ </Canvas>
|
|
|
|
+ </Grid>
|
|
|
|
+ </RadioButton.Content>
|
|
|
|
+ <i:Interaction.Triggers>
|
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignBtn, Path=Tag}" />
|
|
|
|
+ </i:EventTrigger>
|
|
|
|
+ </i:Interaction.Triggers>
|
|
|
|
+ </RadioButton>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ <cusColor:ColorContent
|
|
|
|
+ x:Name="FontColorBox"
|
|
|
|
+ Width="56"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ ShowColorList="Collapsed" />
|
|
|
|
+ </Grid>
|
|
|
|
+ </StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
@@ -205,6 +412,7 @@
|
|
Font
|
|
Font
|
|
</TextBlock>-->
|
|
</TextBlock>-->
|
|
|
|
|
|
|
|
+
|
|
<!--<Grid Margin="0,6,0,0">
|
|
<!--<Grid Margin="0,6,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="auto" />
|
|
@@ -216,7 +424,8 @@
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
- <Border
|
|
|
|
|
|
+ -->
|
|
|
|
+ <!--<Border
|
|
Grid.ColumnSpan="2"
|
|
Grid.ColumnSpan="2"
|
|
Width="228"
|
|
Width="228"
|
|
Height="32"
|
|
Height="32"
|
|
@@ -224,7 +433,8 @@
|
|
BorderBrush="#E2E3E6"
|
|
BorderBrush="#E2E3E6"
|
|
BorderThickness="0">
|
|
BorderThickness="0">
|
|
<Grid>
|
|
<Grid>
|
|
- <ComboBox
|
|
|
|
|
|
+ -->
|
|
|
|
+ <!--<ComboBox
|
|
Name="FontFamilyBox"
|
|
Name="FontFamilyBox"
|
|
Padding="10,10,0,0"
|
|
Padding="10,10,0,0"
|
|
Background="Transparent"
|
|
Background="Transparent"
|
|
@@ -271,7 +481,8 @@
|
|
<i:InvokeCommandAction Command="{Binding FontFamilyChangedCommand}" CommandParameter="{Binding ElementName=FontFamilyBox, Path=SelectedIndex}" />
|
|
<i:InvokeCommandAction Command="{Binding FontFamilyChangedCommand}" CommandParameter="{Binding ElementName=FontFamilyBox, Path=SelectedIndex}" />
|
|
</i:EventTrigger>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</i:Interaction.Triggers>
|
|
- </ComboBox>
|
|
|
|
|
|
+ </ComboBox>-->
|
|
|
|
+ <!--
|
|
|
|
|
|
<TextBox
|
|
<TextBox
|
|
Name="FontFamilyText"
|
|
Name="FontFamilyText"
|
|
@@ -285,15 +496,15 @@
|
|
IsReadOnly="True"
|
|
IsReadOnly="True"
|
|
TextAlignment="Left" />
|
|
TextAlignment="Left" />
|
|
</Grid>
|
|
</Grid>
|
|
- </Border>
|
|
|
|
|
|
+ </Border>-->
|
|
|
|
|
|
- <cusColor:ColorSubContent
|
|
|
|
|
|
+ <!--<cusColor:ColorSubContent
|
|
x:Name="FontColorBox"
|
|
x:Name="FontColorBox"
|
|
Grid.Row="2"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
- HorizontalAlignment="Left" />
|
|
|
|
|
|
+ HorizontalAlignment="Left" />-->
|
|
|
|
|
|
- <Border
|
|
|
|
|
|
+ <!--<Border
|
|
Grid.Row="1"
|
|
Grid.Row="1"
|
|
Width="148"
|
|
Width="148"
|
|
Height="32"
|
|
Height="32"
|
|
@@ -361,9 +572,9 @@
|
|
IsReadOnly="True"
|
|
IsReadOnly="True"
|
|
TextAlignment="Left" />
|
|
TextAlignment="Left" />
|
|
</Grid>
|
|
</Grid>
|
|
- </Border>
|
|
|
|
|
|
+ </Border>-->
|
|
|
|
|
|
- <Border
|
|
|
|
|
|
+ <!--<Border
|
|
Grid.Row="1"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Grid.Column="1"
|
|
Width="80"
|
|
Width="80"
|
|
@@ -371,7 +582,8 @@
|
|
Margin="-1,8,0,0"
|
|
Margin="-1,8,0,0"
|
|
BorderBrush="#E2E3E6"
|
|
BorderBrush="#E2E3E6"
|
|
BorderThickness="0">
|
|
BorderThickness="0">
|
|
- <Grid>
|
|
|
|
|
|
+ -->
|
|
|
|
+ <!--<Grid>
|
|
<ComboBox
|
|
<ComboBox
|
|
Name="FontSizeBox"
|
|
Name="FontSizeBox"
|
|
Background="Transparent"
|
|
Background="Transparent"
|
|
@@ -497,8 +709,10 @@
|
|
FontSize="14"
|
|
FontSize="14"
|
|
IsReadOnly="True"
|
|
IsReadOnly="True"
|
|
TextAlignment="Left" />
|
|
TextAlignment="Left" />
|
|
- </Grid>
|
|
|
|
- </Border>
|
|
|
|
|
|
+ </Grid>-->
|
|
|
|
+ <!--
|
|
|
|
+ </Border>-->
|
|
|
|
+ <!--
|
|
|
|
|
|
|
|
|
|
<Border
|
|
<Border
|
|
@@ -516,212 +730,17 @@
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
- <RadioButton
|
|
|
|
- x:Name="TextAlignLeftBtn"
|
|
|
|
- Width="32"
|
|
|
|
- Height="32"
|
|
|
|
- VerticalContentAlignment="Center"
|
|
|
|
- Background="Transparent"
|
|
|
|
- Foreground="#616469"
|
|
|
|
- GroupName="TextAlign"
|
|
|
|
- IsChecked="True"
|
|
|
|
- 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" />
|
|
|
|
- <Rectangle
|
|
|
|
- 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" />
|
|
|
|
- <Rectangle
|
|
|
|
- Canvas.Top="8.25"
|
|
|
|
- Width="14"
|
|
|
|
- Height="1.5"
|
|
|
|
- Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
|
|
|
|
- StrokeThickness="1.5" />
|
|
|
|
- </Canvas>
|
|
|
|
- </Grid>
|
|
|
|
- </RadioButton.Content>
|
|
|
|
- <i:Interaction.Triggers>
|
|
|
|
- <i:EventTrigger EventName="Checked">
|
|
|
|
- <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignLeftBtn, Path=Tag}" />
|
|
|
|
- </i:EventTrigger>
|
|
|
|
- </i:Interaction.Triggers>
|
|
|
|
- </RadioButton>
|
|
|
|
-
|
|
|
|
- <RadioButton
|
|
|
|
- x:Name="TextAlignCenterBtn"
|
|
|
|
- Grid.Column="1"
|
|
|
|
- Width="32"
|
|
|
|
- Height="32"
|
|
|
|
- VerticalContentAlignment="Center"
|
|
|
|
- Background="Transparent"
|
|
|
|
- Foreground="#616469"
|
|
|
|
- GroupName="TextAlign"
|
|
|
|
- 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" />
|
|
|
|
- <Rectangle
|
|
|
|
- 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" />
|
|
|
|
- <Rectangle
|
|
|
|
- Canvas.Top="8.25"
|
|
|
|
- Width="14"
|
|
|
|
- Height="1.5"
|
|
|
|
- Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
|
|
|
|
- StrokeThickness="1.5" />
|
|
|
|
- </Canvas>
|
|
|
|
- </Grid>
|
|
|
|
- </RadioButton.Content>
|
|
|
|
- <i:Interaction.Triggers>
|
|
|
|
- <i:EventTrigger EventName="Checked">
|
|
|
|
- <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignCenterBtn, Path=Tag}" />
|
|
|
|
- </i:EventTrigger>
|
|
|
|
- </i:Interaction.Triggers>
|
|
|
|
- </RadioButton>
|
|
|
|
-
|
|
|
|
- <RadioButton
|
|
|
|
- x:Name="TextAlignRightBtn"
|
|
|
|
- Grid.Column="2"
|
|
|
|
- Width="32"
|
|
|
|
- Height="32"
|
|
|
|
- VerticalContentAlignment="Center"
|
|
|
|
- Background="Transparent"
|
|
|
|
- Foreground="#616469"
|
|
|
|
- GroupName="TextAlign"
|
|
|
|
- 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" />
|
|
|
|
- <Rectangle
|
|
|
|
- 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" />
|
|
|
|
- <Rectangle
|
|
|
|
- Canvas.Top="8.25"
|
|
|
|
- Width="14"
|
|
|
|
- Height="1.5"
|
|
|
|
- Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
|
|
|
|
- StrokeThickness="1.5" />
|
|
|
|
- </Canvas>
|
|
|
|
- </Grid>
|
|
|
|
- </RadioButton.Content>
|
|
|
|
- <i:Interaction.Triggers>
|
|
|
|
- <i:EventTrigger EventName="Checked">
|
|
|
|
- <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignRightBtn, Path=Tag}" />
|
|
|
|
- </i:EventTrigger>
|
|
|
|
- </i:Interaction.Triggers>
|
|
|
|
- </RadioButton>
|
|
|
|
-
|
|
|
|
- <RadioButton
|
|
|
|
- x:Name="TextAlignBtn"
|
|
|
|
- Grid.Column="3"
|
|
|
|
- Width="32"
|
|
|
|
- Height="32"
|
|
|
|
- VerticalContentAlignment="Center"
|
|
|
|
- Background="Transparent"
|
|
|
|
- Foreground="#616469"
|
|
|
|
- GroupName="TextAlign"
|
|
|
|
- Style="{DynamicResource GreyBgRadioBtnStyle}"
|
|
|
|
- Tag="Align">
|
|
|
|
- <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" />
|
|
|
|
- <Rectangle
|
|
|
|
- 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" />
|
|
|
|
- <Rectangle
|
|
|
|
- Canvas.Top="12.25"
|
|
|
|
- Width="14"
|
|
|
|
- Height="1.5"
|
|
|
|
- Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
|
|
|
|
- StrokeThickness="1.5" />
|
|
|
|
- </Canvas>
|
|
|
|
- </Grid>
|
|
|
|
- </RadioButton.Content>
|
|
|
|
- <i:Interaction.Triggers>
|
|
|
|
- <i:EventTrigger EventName="Checked">
|
|
|
|
- <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignBtn, Path=Tag}" />
|
|
|
|
- </i:EventTrigger>
|
|
|
|
- </i:Interaction.Triggers>
|
|
|
|
- </RadioButton>
|
|
|
|
-
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
</Grid>-->
|
|
</Grid>-->
|
|
|
|
|
|
<TextBlock
|
|
<TextBlock
|
|
- x:Name="AlignText"
|
|
|
|
- Margin="12,14,0,0"
|
|
|
|
- FontFamily="Segoe UI Semibold"
|
|
|
|
- FontSize="14"
|
|
|
|
|
|
+ x:Name="AlignImg"
|
|
|
|
+ Margin="0,18,0,10"
|
|
|
|
+ FontFamily="Segoe UI"
|
|
|
|
+ FontSize="12"
|
|
FontWeight="SemiBold"
|
|
FontWeight="SemiBold"
|
|
|
|
+ Foreground="{StaticResource color.sys.text.neutral.lv2}"
|
|
LineHeight="20">
|
|
LineHeight="20">
|
|
Align
|
|
Align
|
|
</TextBlock>
|
|
</TextBlock>
|
|
@@ -859,10 +878,10 @@
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
- <StackPanel Visibility="{Binding IsSelectTextAndImg, Converter={StaticResource BoolToVisible}}">
|
|
|
|
|
|
+ <!--<StackPanel Visibility="{Binding IsSelectTextAndImg, Converter={StaticResource BoolToVisible}}">
|
|
<TextBlock
|
|
<TextBlock
|
|
x:Name="GeneralProperties"
|
|
x:Name="GeneralProperties"
|
|
- Margin="12,14,0,0"
|
|
|
|
|
|
+ Margin="12,0,0,0"
|
|
FontFamily="Segoe UI Semibold"
|
|
FontFamily="Segoe UI Semibold"
|
|
FontSize="14"
|
|
FontSize="14"
|
|
FontWeight="SemiBold"
|
|
FontWeight="SemiBold"
|
|
@@ -878,8 +897,12 @@
|
|
LineHeight="20">
|
|
LineHeight="20">
|
|
Align
|
|
Align
|
|
</TextBlock>
|
|
</TextBlock>
|
|
- </StackPanel>
|
|
|
|
- <FormControl:LayoutAglinContent x:Name="laoutAglin" Grid.Row="1" IsLayoutAlign="{Binding IsLayoutAlign}" IsLayoutAvgAlign="{Binding IsLayoutAvgAlign}">
|
|
|
|
|
|
+ </StackPanel>-->
|
|
|
|
+ <FormControl:LayoutAglinContent
|
|
|
|
+ x:Name="laoutAglin"
|
|
|
|
+ Grid.Row="1"
|
|
|
|
+ IsLayoutAlign="{Binding IsLayoutAlign}"
|
|
|
|
+ IsLayoutAvgAlign="{Binding IsLayoutAvgAlign}">
|
|
<i:Interaction.Triggers>
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="ValueChanged">
|
|
<i:EventTrigger EventName="ValueChanged">
|
|
<i:InvokeCommandAction Command="{Binding ImgAlignCheckedCommand}" CommandParameter="{Binding ElementName=laoutAglin, Path=Btntag}" />
|
|
<i:InvokeCommandAction Command="{Binding ImgAlignCheckedCommand}" CommandParameter="{Binding ElementName=laoutAglin, Path=Btntag}" />
|