|
@@ -4,7 +4,8 @@
|
|
|
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: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"
|
|
@@ -96,180 +97,279 @@
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
|
|
|
-
|
|
|
- <Border BorderBrush="#E2E3E6" Height="32" Margin="12,0,4,0" BorderThickness="0">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <ComboBox IsReadOnly="True" Name="FontTitleBox" Background="Transparent" Padding="10 10 0 0" Width="148" BorderThickness="1" BorderBrush="#FFE2E3E6"
|
|
|
- ItemsSource="{Binding FontStyleList}"
|
|
|
- ItemTemplate="{StaticResource FontStyleData}"
|
|
|
- >
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="SelectionChanged">
|
|
|
- <i:InvokeCommandAction Command="{Binding SelectedFontStyleCommand}" CommandParameter="{Binding ElementName=FontTitleBox,Path=SelectedItem}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </ComboBox>
|
|
|
- <Button Width="32" Height="32" ContextMenu="{StaticResource BtnFlyoutMenu}"/>
|
|
|
- </StackPanel>
|
|
|
+ <Border
|
|
|
+ Height="32"
|
|
|
+ Margin="0,8,0,18"
|
|
|
+ BorderBrush="#E2E3E6"
|
|
|
+ BorderThickness="0">
|
|
|
+ <Grid>
|
|
|
+ <CompositeControl:CustomComboControl
|
|
|
+ x:Name="FontTitleBox"
|
|
|
+ Width="188"
|
|
|
+ Height="32"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ IsValueContent="True"
|
|
|
+ ItemSource="{Binding PresetTextItems}"
|
|
|
+ SelectedItems="{Binding PresetTextData, Mode=TwoWay}" />
|
|
|
+
|
|
|
+
|
|
|
+ <Button
|
|
|
+ Width="32"
|
|
|
+ Height="32"
|
|
|
+ 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>
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<TextBlock x:Name="FontText" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="14" LineHeight="20" Margin="12,18,0,0" >Font</TextBlock>
|
|
|
|
|
|
- <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>
|
|
|
-
|
|
|
- <Border BorderBrush="#E2E3E6" Width="148" Height="32" Margin="12,0,4,0" BorderThickness="0">
|
|
|
- <Grid>
|
|
|
- <ComboBox IsReadOnly="True" Name="FontFamilyBox" Background="Transparent" Padding="10 10 0 0" BorderThickness="1" BorderBrush="#FFE2E3E6"
|
|
|
- >
|
|
|
- <ComboBox.ItemContainerStyle>
|
|
|
- <Style TargetType="{x:Type ComboBoxItem}">
|
|
|
- <Setter Property="Padding" Value="10 0 0 0"/>
|
|
|
- </Style>
|
|
|
- </ComboBox.ItemContainerStyle>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
|
|
|
- <TextBlock Text="Courier New" FontFamily="Courier New" Tag="Courier" FontSize="14"/>
|
|
|
- </ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
|
|
|
- <TextBlock Text="Arial" FontFamily="Arial" Tag="Helvetica" FontSize="14"/>
|
|
|
- </ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">
|
|
|
- <TextBlock Text="Times New Roman" FontFamily="Times New Roman" Tag="Times Roman" FontSize="14"/>
|
|
|
- </ComboBoxItem>
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="SelectionChanged">
|
|
|
- <i:InvokeCommandAction Command="{Binding FontFamilyChangedCommand}" CommandParameter="{Binding ElementName=FontFamilyBox,Path=SelectedIndex}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </ComboBox>
|
|
|
-
|
|
|
- <TextBox Name="FontFamilyText" FontFamily="Segoe UI" FontSize="14" Background="White" Padding="10 0 0 0" Margin="2,0,25,0" IsReadOnly="True"
|
|
|
- BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left">
|
|
|
- </TextBox>
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock
|
|
|
+ Margin="0,0,0,10"
|
|
|
+ Style="{StaticResource PropertyHeaderLv2}"
|
|
|
+ Text="文本" />
|
|
|
+
|
|
|
+ <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}" />
|
|
|
+
|
|
|
+
|
|
|
+ <CompositeControl:CustomComboControl
|
|
|
+ x:Name="FontSizeBox"
|
|
|
+ Width="110"
|
|
|
+ Height="32"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ SelectedItems="{Binding FontSizeData, Mode=TwoWay}" />
|
|
|
</Grid>
|
|
|
- </Border>
|
|
|
-
|
|
|
- <cus:ColorDropBox x:Name="FontColorBox" Grid.Column="1" Grid.Row="1" SelectedColorChanged="FontColorBox_SelectedColorChanged" BorderThickness="1" BorderBrush="#E2E3E6" Width="80" Height="32" HorizontalAlignment="Left"
|
|
|
- ></cus:ColorDropBox>
|
|
|
-
|
|
|
- <Border Grid.Row="1" BorderBrush="#E2E3E6" Width="148" Height="32" Margin="12,8,4,0" BorderThickness="0">
|
|
|
<Grid>
|
|
|
- <ComboBox Name="FontStyleBox" IsReadOnly="True" BorderThickness="1" BorderBrush="#FFE2E3E6" Padding="10 10 0 0" Background="Transparent">
|
|
|
- <ComboBox.ItemContainerStyle>
|
|
|
- <Style TargetType="{x:Type ComboBoxItem}">
|
|
|
- <Setter Property="Padding" Value="10 0 0 0"/>
|
|
|
- </Style>
|
|
|
- </ComboBox.ItemContainerStyle>
|
|
|
- <ComboBoxItem x:Name="RegularItem" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">Regular</ComboBoxItem>
|
|
|
- <ComboBoxItem x:Name="BoldItem" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">Bold</ComboBoxItem>
|
|
|
- <ComboBoxItem x:Name="ItalicItem" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">Italic</ComboBoxItem>
|
|
|
- <ComboBoxItem x:Name="BoldItalicItem" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">Bold Italic</ComboBoxItem>
|
|
|
-
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="SelectionChanged">
|
|
|
- <i:InvokeCommandAction Command="{Binding FontStyleChangedCommand}" CommandParameter="{Binding ElementName=FontStyleBox,Path=SelectedItem}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </ComboBox>
|
|
|
- <TextBox Name="FontStyleText" IsReadOnly="True" FontFamily="Segoe UI" FontSize="14" Background="White" Padding="10 0 0 0" Height="20" Margin="2,0,35,0"
|
|
|
- BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left">
|
|
|
- </TextBox>
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
-
|
|
|
- <Border Grid.Row="0" Grid.Column="1" BorderBrush="#E2E3E6" Width="80" Height="32" Margin="-1,8,0,0" BorderThickness="0">
|
|
|
- <Grid>
|
|
|
- <ComboBox Name="FontSizeBox" BorderThickness="1" Background="Transparent" BorderBrush="#FFE2E3E6"
|
|
|
- MaxDropDownHeight="200">
|
|
|
- <ComboBox.ItemContainerStyle>
|
|
|
- <Style TargetType="{x:Type ComboBoxItem}">
|
|
|
- <Setter Property="Padding" Value="10 0 0 0"/>
|
|
|
- </Style>
|
|
|
- </ComboBox.ItemContainerStyle>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">6</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">8</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">9</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">10</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">12</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">14</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">18</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">20</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">22</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">24</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">26</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">28</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">32</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">36</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">48</ComboBoxItem>
|
|
|
- <ComboBoxItem Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}">72</ComboBoxItem>
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="SelectionChanged">
|
|
|
- <i:InvokeCommandAction Command="{Binding FontSizeChangedCommand}" CommandParameter="{Binding ElementName=FontSizeBox,Path=SelectedItem}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </ComboBox>
|
|
|
- <TextBox Name="FontSizeText" FontFamily="Segoe UI" FontSize="14" Background="White" Height="20" Padding="10 0 0 0" Margin="2,0,35,0"
|
|
|
- BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left" IsReadOnly="True">
|
|
|
- </TextBox>
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
-
|
|
|
-
|
|
|
- <Border Grid.ColumnSpan="2" Grid.Row="2" Width="148" Height="32" Margin="12,8,0,0" BorderThickness="1" BorderBrush="#FFE2E3E6" HorizontalAlignment="Left">
|
|
|
- <Grid Name="ToolGrid">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
-
|
|
|
- <ToggleButton Name="TextAlignLeftBtn" Tag="AlignLeft" Background="Transparent" BorderThickness="0" Click="BtnTextAlign_Click">
|
|
|
- <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="#000000" Data="M10,11 L10,12 L0,12 L0,11 L10,11 Z M16,7 L16,8 L0,8 L0,7 L16,7 Z M13,3 L13,4 L0,4 L0,3 L13,3 Z">
|
|
|
- </Path>
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="Checked">
|
|
|
- <i:InvokeCommandAction Command="{Binding TextAlignChecked}" CommandParameter="{Binding ElementName=TextAlignLeftBtn,Path=Tag}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </ToggleButton>
|
|
|
- <Line HorizontalAlignment="Left" Style="{StaticResource line1Style}" VerticalAlignment="Center" Grid.Column="1" X1="0" Y1="0" X2="0" Y2="16" StrokeThickness="1" Stroke="#33000000"></Line>
|
|
|
-
|
|
|
- <ToggleButton Name="TextAlignCenterBtn" Tag="AlignCenter" Grid.Column="1" Background="Transparent" BorderThickness="0" Click="BtnTextAlign_Click">
|
|
|
- <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="#000000" Data="M16,11 L16,12 L0,12 L0,11 L16,11 Z M13,7 L13,8 L3,8 L3,7 L13,7 Z M16,3 L16,4 L0,4 L0,3 L16,3 Z">
|
|
|
- </Path>
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="Checked">
|
|
|
- <i:InvokeCommandAction Command="{Binding TextAlignChecked}" CommandParameter="{Binding ElementName=TextAlignCenterBtn,Path=Tag}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </ToggleButton>
|
|
|
- <Line HorizontalAlignment="Left" Style="{StaticResource line2Style}" VerticalAlignment="Center" Grid.Column="2" X1="0" Y1="0" X2="0" Y2="16" StrokeThickness="1" Stroke="#33000000"></Line>
|
|
|
-
|
|
|
- <ToggleButton Name="TextAlignRightBtn" Tag="AlignRight" Grid.Column="2" Background="Transparent" BorderThickness="0" Click="BtnTextAlign_Click">
|
|
|
- <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="#000000" Data="M16,11 L16,12 L6.00061035,12 L6.00061035,11 L16,11 Z M16,7 L16,8 L0.0009765625,8 L0.0009765625,7 L16,7 Z M16,3 L16,4 L3.00079346,4 L3.00079346,3 L16,3 Z">
|
|
|
- </Path>
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="Checked">
|
|
|
- <i:InvokeCommandAction Command="{Binding TextAlignChecked}" CommandParameter="{Binding ElementName=TextAlignRightBtn,Path=Tag}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </ToggleButton>
|
|
|
+ <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>
|
|
|
- </Border>
|
|
|
- </Grid>
|
|
|
-
|
|
|
-
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
<Grid Margin="0,18,0,0">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="auto"/>
|
|
@@ -280,12 +380,11 @@
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
-
|
|
|
+<!--MVP-->
|
|
|
|
|
|
- <TextBlock x:Name="thicknessText" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="14" LineHeight="20" Margin="12,14,0,0" >Thickness</TextBlock>
|
|
|
+ <TextBlock x:Name="thicknessText" Visibility="Collapsed" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="14" LineHeight="20" Margin="12,14,0,0" >Thickness</TextBlock>
|
|
|
|
|
|
-
|
|
|
- <Grid>
|
|
|
+ <Grid Visibility="Collapsed">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
|
@@ -326,20 +425,36 @@
|
|
|
</Border>
|
|
|
</Grid>
|
|
|
|
|
|
+ <StackPanel Visibility="Collapsed" 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"
|
|
|
+ Style="{DynamicResource GreyBgRadioBtnStyle}">
|
|
|
+ <RadioButton.Content>
|
|
|
+ <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" />
|
|
|
+ </RadioButton.Content>
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding LineModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnSolid, Path=Tag}" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </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.Content>
|
|
|
+ <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" StrokeDashArray="2"/>
|
|
|
+ </RadioButton.Content>
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <i:InvokeCommandAction Command="{Binding LineModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnDashed, Path=Tag}" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </RadioButton>
|
|
|
|
|
|
- <StackPanel x:Name="PnlLineStyle" Orientation="Horizontal" Margin="0,20,0,0">
|
|
|
- <cus:CustomIconToggleBtn x:Name="BtnSolidLine" Tag="Solid" Width="110" Height="32" Click="BtnLineStyle_Click"
|
|
|
- Style="{StaticResource ToggleBtnViewModeStyle}">
|
|
|
- <Border BorderBrush="Black" BorderThickness="1" Padding="8,0,8,0" Width="108" Height="30">
|
|
|
- <Line X1="10" Y1="15" X2="260" Y2="15" Stroke="Black" StrokeThickness="2" />
|
|
|
- </Border>
|
|
|
- </cus:CustomIconToggleBtn>
|
|
|
- <cus:CustomIconToggleBtn x:Name="BtnDottedLine" Tag="Dotted" Width="110" Height="32" Click="BtnLineStyle_Click"
|
|
|
- Style="{StaticResource ToggleBtnViewModeStyle}">
|
|
|
- <Border BorderBrush="Black" BorderThickness="1" Padding="8,0,8,0" Width="108" Height="30" >
|
|
|
- <Line X1="10" Y1="15" X2="260" Y2="15" Stroke="Black" StrokeThickness="2" StrokeDashArray="2"/>
|
|
|
- </Border>
|
|
|
- </cus:CustomIconToggleBtn>
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</Grid>
|