|
@@ -10,6 +10,7 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
+ xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
|
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
d:DesignHeight="750"
|
|
|
d:DesignWidth="260"
|
|
@@ -17,6 +18,11 @@
|
|
|
mc:Ignorable="d">
|
|
|
<UserControl.Resources>
|
|
|
<ResourceDictionary>
|
|
|
+ <ResourceDictionary.MergedDictionaries>
|
|
|
+ <ResourceDictionary Source="../../Styles/ListViewStyle.xaml" />
|
|
|
+ <ResourceDictionary Source="../../Styles/SliderStyle.xaml"/>
|
|
|
+ </ResourceDictionary.MergedDictionaries>
|
|
|
+
|
|
|
<convert:InvertBoolConvert x:Key="InvertBoolConvert" />
|
|
|
<Style TargetType="{x:Type TabItem}">
|
|
|
<Setter Property="Width" Value="74.67 " />
|
|
@@ -29,6 +35,13 @@
|
|
|
<Setter Property="Height" Value="16" />
|
|
|
<Setter Property="Fill" Value="{StaticResource color.icon.base.neutral.norm.lv1}" />
|
|
|
</Style>
|
|
|
+
|
|
|
+ <DataTemplate x:Key="ContentColorTemplate">
|
|
|
+ <Grid Width="84" Height="24">
|
|
|
+ <Rectangle Stroke="Red" StrokeThickness="1"/>
|
|
|
+ <TextBlock Text="Text"/>
|
|
|
+ </Grid>
|
|
|
+ </DataTemplate>
|
|
|
</ResourceDictionary>
|
|
|
</UserControl.Resources>
|
|
|
<Grid ScrollViewer.VerticalScrollBarVisibility="Auto">
|
|
@@ -82,7 +95,7 @@
|
|
|
Margin="0,18,0,10"
|
|
|
Style="{StaticResource PropertyHeaderLv2}"
|
|
|
Text="Form Field" />
|
|
|
- <form:FormFieldCombox x:Name="formCombox" Type="{Binding FormPos,Mode=TwoWay}" Height="32" Margin="0,8,0,16" />
|
|
|
+ <form:FormFieldCombox x:Name="formCombox" Type="{Binding FormPos,Mode=OneWay}" Height="32" Margin="0,8,0,16" />
|
|
|
<CheckBox x:Name="ReadOnlyCheckBox" Content="Read Only" Command="{Binding IsReadOnlyCheckedCommand}" CommandParameter="{Binding ElementName=ReadOnlyCheckBox,Path=IsChecked}"/>
|
|
|
<CheckBox x:Name="RequiredFieldCheckBox" Margin="0,8" Content="Required field" Command="{Binding RequiredFieldCheckedCommand}" CommandParameter="{Binding ElementName=RequiredFieldCheckBox,Path=IsChecked}"/>
|
|
|
</StackPanel>
|
|
@@ -93,23 +106,212 @@
|
|
|
</TabItem.Header>
|
|
|
<Grid IsEnabled="{Binding ElementName=ChkLock, Path=IsChecked, Converter={StaticResource InvertBoolConvert}}" >
|
|
|
<StackPanel>
|
|
|
- <TextBlock
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock
|
|
|
Margin="0,18,0,10"
|
|
|
Style="{StaticResource PropertyHeaderLv2}"
|
|
|
Text="Set Color" />
|
|
|
- <TextBlock
|
|
|
+
|
|
|
+ <Grid Height="50" >
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <RadioButton BorderThickness="1" Width="84" Height="24" Grid.Row="0" Grid.Column="0"
|
|
|
+ Style="{StaticResource BlueBorderRadionButtonWithCorner}">
|
|
|
+ <Grid Width="84" Height="24" Margin="3">
|
|
|
+ <Rectangle Fill="BlueViolet" Stroke="Black" StrokeThickness="1" VerticalAlignment="Stretch"/>
|
|
|
+ <TextBlock Text="Text" FontSize="14" LineHeight="22" FontFamily="Segoe UI" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Grid>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+ <RadioButton BorderThickness="1" Width="84" Height="24" Grid.Row="0" Grid.Column="1"
|
|
|
+ Style="{StaticResource BlueBorderRadionButtonWithCorner}">
|
|
|
+ <Grid Width="84" Height="24" Margin="3">
|
|
|
+ <Rectangle Fill="BlueViolet" Stroke="Black" StrokeThickness="1" VerticalAlignment="Stretch"/>
|
|
|
+ <TextBlock Text="Text" FontSize="14" LineHeight="22" FontFamily="Segoe UI" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Grid>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+ <RadioButton BorderThickness="1" Width="84" Height="24" Grid.Row="1" Grid.Column="0"
|
|
|
+ Style="{StaticResource BlueBorderRadionButtonWithCorner}">
|
|
|
+ <Grid Width="84" Height="24" Margin="3">
|
|
|
+ <Rectangle Fill="BlueViolet" Stroke="Black" StrokeThickness="1" VerticalAlignment="Stretch"/>
|
|
|
+ <TextBlock Text="Text" FontSize="14" LineHeight="22" FontFamily="Segoe UI" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Grid>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+ <RadioButton BorderThickness="1" Width="84" Height="24" Grid.Row="1" Grid.Column="1"
|
|
|
+ Style="{StaticResource BlueBorderRadionButtonWithCorner}">
|
|
|
+ <Grid Width="84" Height="24" Margin="3">
|
|
|
+ <Rectangle Fill="BlueViolet" Stroke="Black" StrokeThickness="1" VerticalAlignment="Stretch"/>
|
|
|
+ <TextBlock Text="Text" FontSize="14" LineHeight="22" FontFamily="Segoe UI" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Grid>
|
|
|
+ </RadioButton>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock
|
|
|
Margin="0,18,0,10"
|
|
|
Style="{StaticResource PropertyHeaderLv2}"
|
|
|
Text="Line" />
|
|
|
- <TextBlock
|
|
|
+
|
|
|
+
|
|
|
+ <CompositeControl:SlidComboControl x:Name="thickness">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="ValueChanged">
|
|
|
+ <i:InvokeCommandAction Command="{Binding ThicknessChangedCommand}" CommandParameter="{Binding ElementName=thickness,Path=Value}"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CompositeControl:SlidComboControl>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock
|
|
|
Margin="0,18,0,10"
|
|
|
Style="{StaticResource PropertyHeaderLv2}"
|
|
|
Text="文本" />
|
|
|
|
|
|
- <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" Grid.ColumnSpan="2" Width="228" 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>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+
|
|
|
+ <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="1" 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>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel>
|
|
|
+
|
|
|
+ <TextBlock
|
|
|
Margin="0,18,0,10"
|
|
|
Style="{StaticResource PropertyHeaderLv2}"
|
|
|
Text="大小" />
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Path Data="M12.9999 8.75012V10.8285L15.8284 8.00006L12.9999 5.17163V7.25012H2.82843V5.17175L0 8.00017L2.82843 10.8286V8.75012H12.9999Z" Fill="#616469"/>
|
|
|
+ <cus:NumericUpDown Height="32" Width="90"/>
|
|
|
+
|
|
|
+ <Path Data="M10.8284 2.82843H8.74999L8.74999 12.9999H10.8285L8.00005 15.8284L5.17163 12.9999H7.24999L7.24999 2.82843H5.17151L7.99994 0L10.8284 2.82843Z" Fill="#616469"/>
|
|
|
+ <cus:NumericUpDown Height="32" Width="90"/>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</TabItem>
|