123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <Window x:Class="Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI.CPDFCreateStampDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI" xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
- mc:Ignorable="d"
- AllowsTransparency="True"
- WindowStyle="None"
- ShowInTaskbar="False"
- ResizeMode="NoResize"
- Loaded="Window_Loaded"
- Title="CreateStampDialog" Height="357" Width="626">
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../Asset/Styles/ButtonStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- <cpdfcommon:ReverseVisibilityConverter x:Key="ReverseVisibilityConverter"/>
- <SolidColorBrush x:Key="TabItem.Selected.Background" Color="#FFFFFF"/>
- <SolidColorBrush x:Key="TabItem.Selected.Border" Color="#ACACAC"/>
- <Style x:Key="TabControlStyle1" TargetType="{x:Type TabControl}">
- <Setter Property="Padding" Value="2"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Background" Value="{StaticResource TabItem.Selected.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource TabItem.Selected.Border}"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabControl}">
- <Grid x:Name="templateRoot" ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
- <Grid.ColumnDefinitions>
- <ColumnDefinition x:Name="ColumnDefinition0"/>
- <ColumnDefinition x:Name="ColumnDefinition1" Width="0"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition x:Name="RowDefinition0" Height="Auto"/>
- <RowDefinition x:Name="RowDefinition1" Height="*"/>
- </Grid.RowDefinitions>
- <TabPanel x:Name="headerPanel" Background="Transparent" Grid.Column="0" IsItemsHost="true" Margin="2,2,2,0" Grid.Row="0" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1"/>
- <Border x:Name="contentPanel" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local">
- <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </Border>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="TabStripPlacement" Value="Bottom">
- <Setter Property="Grid.Row" TargetName="headerPanel" Value="1"/>
- <Setter Property="Grid.Row" TargetName="contentPanel" Value="0"/>
- <Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
- <Setter Property="Height" TargetName="RowDefinition1" Value="Auto"/>
- <Setter Property="Margin" TargetName="headerPanel" Value="2,0,2,2"/>
- </Trigger>
- <Trigger Property="TabStripPlacement" Value="Left">
- <Setter Property="Grid.Row" TargetName="headerPanel" Value="0"/>
- <Setter Property="Grid.Row" TargetName="contentPanel" Value="0"/>
- <Setter Property="Grid.Column" TargetName="headerPanel" Value="0"/>
- <Setter Property="Grid.Column" TargetName="contentPanel" Value="1"/>
- <Setter Property="Width" TargetName="ColumnDefinition0" Value="Auto"/>
- <Setter Property="Width" TargetName="ColumnDefinition1" Value="*"/>
- <Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
- <Setter Property="Height" TargetName="RowDefinition1" Value="0"/>
- <Setter Property="Margin" TargetName="headerPanel" Value="2,2,0,2"/>
- </Trigger>
- <Trigger Property="TabStripPlacement" Value="Right">
- <Setter Property="Grid.Row" TargetName="headerPanel" Value="0"/>
- <Setter Property="Grid.Row" TargetName="contentPanel" Value="0"/>
- <Setter Property="Grid.Column" TargetName="headerPanel" Value="1"/>
- <Setter Property="Grid.Column" TargetName="contentPanel" Value="0"/>
- <Setter Property="Width" TargetName="ColumnDefinition0" Value="*"/>
- <Setter Property="Width" TargetName="ColumnDefinition1" Value="Auto"/>
- <Setter Property="Height" TargetName="RowDefinition0" Value="*"/>
- <Setter Property="Height" TargetName="RowDefinition1" Value="0"/>
- <Setter Property="Margin" TargetName="headerPanel" Value="0,2,2,2"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="TextElement.Foreground" TargetName="templateRoot" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="FocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#F0F0F0" Offset="0.0"/>
- <GradientStop Color="#E5E5E5" Offset="1.0"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="TabItem.Static.Border" Color="#ACACAC"/>
- <LinearGradientBrush x:Key="TabItem.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#ECF4FC" Offset="0.0"/>
- <GradientStop Color="#DCECFC" Offset="1.0"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="#7EB4EA"/>
- <SolidColorBrush x:Key="TabItem.Selected.Background1" Color="#FFFFFF"/>
- <SolidColorBrush x:Key="TabItem.Selected.Border1" Color="#1460F3"/>
- <SolidColorBrush x:Key="TabItem.Disabled.Background" Color="#F0F0F0"/>
- <SolidColorBrush x:Key="TabItem.Disabled.Border" Color="#FFFFFF"/>
- <Style x:Key="TabItemStyle1" TargetType="{x:Type TabItem}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Background" Value="{StaticResource TabItem.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource TabItem.Static.Border}"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="Padding" Value="6,2,6,2"/>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="VerticalContentAlignment" Value="Stretch"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabItem}">
- <Grid x:Name="templateRoot" SnapsToDevicePixels="true">
- <Border x:Name="mainBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,0,1" Margin="0">
- <Border x:Name="innerBorder" Background="{StaticResource TabItem.Selected.Background1}" BorderBrush="{StaticResource TabItem.Selected.Border1}" BorderThickness="0,0,0,1" Margin="-1" Opacity="0"/>
- </Border>
- <ContentPresenter x:Name="contentPresenter" ContentSource="Header" Focusable="False" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
- </Grid>
- <ControlTemplate.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
- <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Panel.ZIndex" Value="1"/>
- <Setter Property="Margin" Value="-2,-2,0,-2"/>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Panel.ZIndex" Value="1"/>
- <Setter Property="Margin" Value="-2,0,-2,-2"/>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Panel.ZIndex" Value="1"/>
- <Setter Property="Margin" Value="0,-2,-2,-2"/>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,0"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,0"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
- <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Panel.ZIndex" Value="1"/>
- <Setter Property="Margin" Value="-2,-2,-2,0"/>
- <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
- <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,0,0,1"/>
- <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,0,0,1"/>
- </MultiDataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="LinkButton" TargetType="Button">
- <Setter Property="Width" Value="Auto"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <ContentPresenter Content="{TemplateBinding Content}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- VerticalAlignment="Center"
- >
- <ContentPresenter.Resources>
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="TextDecorations" Value="Underline" />
- </Style>
- </ContentPresenter.Resources>
- </ContentPresenter>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="Foreground" Value="Blue" />
- <Setter Property="Cursor" Value="Hand" />
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Foreground" Value="Red" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </ResourceDictionary>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="26"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="41"/>
- <RowDefinition Height="11"/>
- </Grid.RowDefinitions>
- <TabControl Margin="23,0,23,0" x:Name="CreateHeader" Style="{DynamicResource TabControlStyle1}" Grid.Row="1" SelectionChanged="CreateHeader_SelectionChanged">
- <TabItem Header="Text Stamp" Style="{DynamicResource TabItemStyle1}">
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="11" />
- <RowDefinition Height="240" />
- <RowDefinition Height="14" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="196"/>
- <ColumnDefinition Width="20"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="1" Grid.Column="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="20"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="32"/>
- <RowDefinition Height="14"/>
- <RowDefinition Height="20"/>
- <RowDefinition Height="12"/>
- <RowDefinition Height="20"/>
- </Grid.RowDefinitions>
- <TextBlock Text="Preview" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <Image Grid.Row="1" x:Name="TextImage" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- <StackPanel Grid.Row="2" Orientation="Horizontal" Height="32">
- <TextBlock Margin="18,0,23,0" Text="Text" VerticalAlignment="Center"/>
- <TextBox x:Name="StampText" Width="233" Text="Stamp Text" VerticalContentAlignment="Center" TextChanged="TextBox_TextChanged"/>
- </StackPanel>
- <CheckBox Grid.Row="4" Name="Date" Content="Date (YYYY-MM-DD)" Checked="Date_Checked" Unchecked="Date_Unchecked"/>
- <CheckBox Grid.Row="6" Name="Time" Content="Time (HH:MM:SS)" Checked="Time_Checked" Unchecked="Time_Unchecked"/>
- </Grid>
- <StackPanel Grid.Row="1">
- <TextBlock Text="Stamp Template:" VerticalAlignment="Center" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
- <ListBox x:Name="ShapeBox" SelectedIndex="0" VerticalContentAlignment="Center" SelectionChanged="ShapeBox_SelectionChanged"/>
- </StackPanel>
- </Grid>
- </TabItem>
- <TabItem Header="Image Stamp" Style="{DynamicResource TabItemStyle1}">
- <Grid
- AllowDrop="True"
- PreviewDrop="Grid_Drop"
- >
- <Grid.RowDefinitions>
- <RowDefinition Height="11" />
- <RowDefinition Height="240" />
- <RowDefinition Height="14" />
- </Grid.RowDefinitions>
- <Grid Background="#F2F3F5" Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="182"/>
- <RowDefinition Height="20"/>
- <RowDefinition Height="38"/>
- </Grid.RowDefinitions>
- <StackPanel x:Name="AddImagebackground" VerticalAlignment="Bottom">
- <Image Height="112" Width="112" Source="../../../Asset/Resource/Annotation/Signature/Dropimage.png"/>
- <TextBlock Text="Drop image here" HorizontalAlignment="Center"/>
- <TextBlock Text="or" HorizontalAlignment="Center"/>
- <Button Style="{DynamicResource LinkButton}" HorizontalAlignment="Center" Content="Select a File" Click="OpenImage_Click"/>
- </StackPanel>
- <Image x:Name="ImageImage" SourceUpdated="ImageImage_SourceUpdated" Grid.RowSpan="3" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="4" Visibility="{Binding ElementName=AddImagebackground,Path=Visibility, Converter={StaticResource ReverseVisibilityConverter}}"/>
- </Grid>
- </Grid>
- </TabItem>
- </TabControl>
- <Grid Grid.Row="2" Margin="11,0,11,0" VerticalAlignment="Top">
- <Button Content="Clear" Click="Clear_Click" Height="32" Width="72" HorizontalAlignment="Left"/>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
- <Button Content="Cancel" Click="Cancel_Click" Width="81" Height="32"/>
- <Button Content="Save" Click="Save_Click" x:Name="SaveBtn" Width="136" Height="32" Margin="8,0,0,0" IsEnabled="True" Style="{StaticResource ButtonStyle}"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|