123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <UserControl x:Class="Compdfkit_Tools.PDFControl.TextFieldProperty"
- 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:Compdfkit_Tools.PDFControl" xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
- mc:Ignorable="d"
- Loaded="UserControl_Loaded"
- Unloaded="UserControl_Unloaded"
- >
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../Asset/Styles/TabControlStyle.xaml"></ResourceDictionary>
- <ResourceDictionary Source="../../Asset/Styles/TabItemStyle.xaml"></ResourceDictionary>
- <ResourceDictionary Source="../../Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Border BorderThickness="0" BorderBrush="#1A000000">
- <Grid Height="40" Background="White" >
- <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Text Field" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- </Grid>
- </Border>
- <TabControl Grid.Row="1" Style="{DynamicResource TabControlStyle1}" BorderThickness="0">
- <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="General">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="16"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="16"/>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="1">
- <StackPanel >
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Text" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <TextBox x:Name="FieldNameText" Margin="0,8,0,0" TextChanged="FieldNameText_TextChanged"/>
- </StackPanel>
- <StackPanel >
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Form Field" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <ComboBox x:Name="FormFieldCombox" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FormFieldCombox_SelectionChanged">
- <ComboBoxItem Content="Visible"/>
- <ComboBoxItem Content="Hidden"/>
- <ComboBoxItem Content="Visible but doesn't print"/>
- <ComboBoxItem Content="Hidden but printable"/>
- </ComboBox>
- </StackPanel>
- </StackPanel>
- </Grid>
- </TabItem>
- <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="Appearance">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="16"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="16"/>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="1">
- <StackPanel>
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Border Color" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <cpdfcommon:ColorPickerControl Margin="0,18,0,0" x:Name="BorderColorPickerControl" ColorChanged="BorderColorPickerControl_ColorChanged"/>
- </StackPanel>
- <StackPanel>
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Background Color" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <cpdfcommon:ColorPickerControl Margin="0,18,0,0" x:Name="BackgroundColorPickerControl" ColorChanged="BackgroundColorPickerControl_ColorChanged"/>
- </StackPanel>
- <StackPanel>
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Text Color" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <cpdfcommon:ColorPickerControl Margin="0,18,0,0" x:Name="TextColorPickerControl" ColorChanged="TextColorPickerControl_ColorChanged"/>
- </StackPanel>
- <StackPanel>
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Text" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold" />
- <ComboBox x:Name="FontCombox" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FontCombox_SelectionChanged">
- <ComboBoxItem Content="Arial"/>
- <ComboBoxItem Content="Courier New"/>
- <ComboBoxItem Content="Times New Roman"/>
- </ComboBox>
- <StackPanel Orientation="Horizontal" >
- <ComboBox x:Name="FontStyleCombox" Margin="0,8,0,0" Width="148" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FontStyleCombox_SelectionChanged">
- <ComboBoxItem Content="Regular"/>
- <ComboBoxItem Content="Bold"/>
- <ComboBoxItem Content="Italic"/>
- <ComboBoxItem Content="Bold Italic"/>
- </ComboBox>
- <ComboBox x:Name="FontSizeCombox" Margin="4,8,0,0" Width="72" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FontSizeCombox_SelectionChanged"/>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
- </TabItem>
- <TabItem Height="32" Style="{DynamicResource TabItemStyle1}" Header="Preferences">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="16"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="16"/>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="1">
- <StackPanel >
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Text alignment" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <ComboBox x:Name="TextAlignmentCombox" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="TextAlignmentCombox_SelectionChanged">
- <ComboBoxItem Content="Left Alignment"/>
- <ComboBoxItem Content="Center"/>
- <ComboBoxItem Content="Right Alignment"/>
- </ComboBox>
- </StackPanel>
- <StackPanel >
- <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Default Value" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <TextBox x:Name="DefaultText" Margin="0,8,0,0" Width="224" Height="112" AcceptsReturn="True" TextWrapping="Wrap" TextChanged="DefaultText_TextChanged"/>
- <CheckBox x:Name="chkMutiline" Content="Muti-Line" FontSize="14" VerticalContentAlignment="Center" Margin="0 14 0 0" Checked="chkMutiline_Checked" Unchecked="chkMutiline_Unchecked"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </TabItem>
- </TabControl>
- </Grid>
- </UserControl>
|