123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <UserControl x:Class="Compdfkit_Tools.PDFControl.CheckBoxProperty"
- 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: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="Check Box" 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>
- </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="Button Style" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <ComboBox x:Name="CheckButtonStyleCombox" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="CheckButtonStyleCombox_SelectionChanged">
- <ComboBoxItem Content="Check"/>
- <ComboBoxItem Content="Circle"/>
- <ComboBoxItem Content="Cross"/>
- <ComboBoxItem Content="Diamond"/>
- <ComboBoxItem Content="Square"/>
- <ComboBoxItem Content="Star"/>
- </ComboBox>
- </StackPanel>
- <StackPanel >
- <CheckBox x:Name="chkSelected" Content="Selected by default" FontSize="14" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="Bold" Margin="0 14 0 0" Checked="chkSelected_Checked" Unchecked="chkSelected_Unchecked"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </TabItem>
- </TabControl>
- </Grid>
- </UserControl>
|