123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.StampAnnotProperty"
- 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:PDF_Office.Views.PropertyPanel.AnnotPanel"
- xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
- xmlns:dd="clr-namespace:PDFSettings;assembly=PDFSettings"
- d:DataContext="{d:DesignInstance Type=annotpanel:StampAnnotPropertyViewModel}"
- mc:Ignorable="d"
- >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <TextBlock x:Name="AnnoteTypeTitle" Text="Stamp" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0 8 0 0" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="18"/>
- <TabControl Grid.Row="1" Name="StampTabControl" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Style="{StaticResource TabControlWithUnderLineStyle}">
- <TabItem x:Name="TabStandard"
- Header="Standard"
- FontFamily="Segoe UI" Foreground="#FF666666"
- HorizontalContentAlignment="Center"
- FontSize="16"
- Height="40"
- Width="88"
- IsSelected="True">
- <ListBox ItemsSource="{Binding StandardStampList}" SelectionMode="Single" Width="256" Height="auto" VerticalAlignment="Top" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListBox.ItemTemplate>
- <DataTemplate >
- <ListBoxItem>
- <Image Source="{Binding SourcePath}" Stretch="Uniform" Height="48"/>
- </ListBoxItem>
- </DataTemplate>
- </ListBox.ItemTemplate>
- <ListBox.ItemContainerStyle>
- <Style TargetType="ListBoxItem">
- <Setter Property="Height" Value="64"/>
- <Setter Property="Padding" Value="12 8 12 8"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_PreviewMouseLeftButtonDown"/>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
-
- </TabItem>
- <TabItem x:Name="TabDydamic"
- Header="Dynamic"
- FontFamily="Segoe UI" Foreground="#FF666666"
- HorizontalContentAlignment="Center"
- FontSize="16"
- Width="86">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="96"/>
- </Grid.RowDefinitions>
- <ListBox ItemsSource="{Binding DynamicStampList}" Loaded="DydamicListBox_Loaded" SelectionMode="Single" Width="256" Height="auto" VerticalAlignment="Top" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListBox.ItemTemplate>
- <DataTemplate >
- <ListBoxItem>
- <Image Source="{Binding ImageSource}" Stretch="Uniform" Height="48"/>
- </ListBoxItem>
- </DataTemplate>
- </ListBox.ItemTemplate>
- <ListBox.ItemContainerStyle>
- <Style TargetType="ListBoxItem">
- <Setter Property="Height" Value="64"/>
- <Setter Property="Padding" Value="12 8 12 8"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_PreviewMouseLeftButtonDown"/>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- <Grid VerticalAlignment="Bottom" Margin="12,0,11.6,20.2" Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <CheckBox Name="chkAuthor" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Margin="0 0 0 8" Content="Author" Padding="7 0 0 0" IsChecked="{Binding IsSetAuthor}" />
- <TextBox x:Name="txtAuthor" VerticalContentAlignment="Center" IsEnabled="{Binding ElementName=chkAuthor, Path=IsChecked}" Text="{Binding Author}" Width="152" Height="32" HorizontalAlignment="Right" Margin="0 0 0 8"/>
- <TextBlock x:Name="lbCreateDate" Grid.Row="1" FontFamily="Seoge UI" FontSize="14" Foreground="Black" VerticalAlignment="Center" Margin="27 0 0 0" Text="Date"/>
- <ComboBox Name="txtCreateDate" Grid.Row="1" Background ="Transparent" Width="152" BorderThickness="1" BorderBrush="#FFE2E3E6" HorizontalAlignment="Right" >
- <ComboBoxItem x:Name="DefualtItem" Content="Defualt" Width="152" />
- <ComboBoxItem Content="m/d" Width="152" />
- <ComboBoxItem Content="m/d/yy" Width="152" />
- <ComboBoxItem Content="m/d/yyyy" Width="152" />
- </ComboBox>
- </Grid>
- </Grid>
- </TabItem>
- <TabItem x:Name="TabCustom"
- Header="Custom"
- FontFamily="Segoe UI" Foreground="#FF666666"
- FontSize="16"
- HorizontalContentAlignment="Center"
- Width="76">
- </TabItem>
- </TabControl>
- </Grid>
- </UserControl>
|