|
@@ -1,204 +0,0 @@
|
|
|
-<UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.CustomCreateDialog"
|
|
|
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
- xmlns:customcontrol="clr-namespace:PDF_Office.CustomControl"
|
|
|
- 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:cus="clr-namespace:PDF_Office.CustomControl" xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert" d:DataContext="{d:DesignInstance Type=annotpanel:CustomCreateDialogViewModel}"
|
|
|
- mc:Ignorable="d" >
|
|
|
-
|
|
|
- <UserControl.Resources>
|
|
|
- <PathGeometry x:Key="Ic_AddButtonPath" Figures="M8.5,2.5 L8.5,7.5 L13.5,7.5 L13.5,8.5 L8.5,8.5 L8.5,13.5 L7.5,13.5 L7.5,8.5 L2.5,8.5 L2.5,7.5 L7.5,7.5 L7.5,2.5 L8.5,2.5 Z"/>
|
|
|
- <dataconvert:UnVisivleConvert x:Key="UnVisivleConvert"/>
|
|
|
- <dataconvert:IntAndTagToBoolMultiBinding x:Key="IntAndTagToBoolMultiBinding"/>
|
|
|
- </UserControl.Resources>
|
|
|
- <cus:DialogContent Header="新建图章">
|
|
|
- <cus:DialogContent.Content>
|
|
|
- <TabControl Grid.Row="1" Name="StampTabControl" SelectedIndex="2" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Style="{StaticResource TabControlWithUnderLineStyle}">
|
|
|
- <TabItem x:Name="文字图章"
|
|
|
- Header="文字图章"
|
|
|
- FontFamily="Segoe UI" Foreground="#FF666666"
|
|
|
- HorizontalContentAlignment="Center"
|
|
|
- FontSize="16"
|
|
|
- Height="40"
|
|
|
- Width="88"
|
|
|
- IsSelected="True">
|
|
|
- <Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Image Height="50" Source="{Binding TextImageSource}"/>
|
|
|
- <TextBox Grid.Row="1" Text="{Binding StampText,Mode=TwoWay}" TextChanged="TextBox_TextChanged">
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="LostFocus">
|
|
|
- <i:InvokeCommandAction Command="{Binding UpDataDynamicCommnad}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- <i:EventTrigger EventName="KeyDown">
|
|
|
- <i:InvokeCommandAction Command="{Binding KeyDown}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </TextBox>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <RadioButton Tag="1" Checked="RadioButton_Checked" >
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="1"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="2" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="2"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="3" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="3"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="4" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="4"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="5" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="5"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="6" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="6"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="7" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="7"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="8" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="8"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="9" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="9"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="10" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding }" Mode="OneWay">
|
|
|
- <Binding Source="10"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- <RadioButton Tag="11" Checked="RadioButton_Checked">
|
|
|
- <RadioButton.IsChecked>
|
|
|
- <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
|
|
|
- <Binding Source="11"/>
|
|
|
- <Binding Path="RadioButtonIndex"/>
|
|
|
- </MultiBinding>
|
|
|
- </RadioButton.IsChecked>
|
|
|
- </RadioButton>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
- <CheckBox Name="Date" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Content="Date" Padding="7 0 0 0" IsChecked="{Binding IsCheckedDate,Mode=TwoWay}"/>
|
|
|
- <CheckBox Name="Time" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Content="Time" Padding="7 0 0 0" IsChecked="{Binding IsCheckedTime,Mode=TwoWay}"/>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- </TabItem>
|
|
|
- <TabItem x:Name="图片图章"
|
|
|
- Header="图片图章"
|
|
|
- FontFamily="Segoe UI" Foreground="#FF666666"
|
|
|
- HorizontalContentAlignment="Center"
|
|
|
- FontSize="16"
|
|
|
- Width="86">
|
|
|
- <Grid >
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="20"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <customcontrol:PathButton
|
|
|
- x:Name="BtnAdd"
|
|
|
- Height="24" Width="24" IconHeight="20" IconWidth="20"
|
|
|
- Icon="{StaticResource Ic_AddButtonPath}" IconFill="Red"
|
|
|
- IconPress="{StaticResource Ic_AddButtonPath}" IconPressFill="#C04CF8"
|
|
|
- IconMouseOver="{StaticResource Ic_AddButtonPath}" IconMouseOverFill="#C04CF8" Visibility="{Binding ShowImageButton}" Command="{Binding OpenImageCommnad}"/>
|
|
|
- <Grid Background="Red" Visibility="{Binding ElementName=BtnAdd,Path=Visibility,Converter={StaticResource UnVisivleConvert}}">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="24"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Image Grid.RowSpan="2" Width="200" Height="200" Source="{Binding ImagePreviewSource}" />
|
|
|
-
|
|
|
- <customcontrol:PathButton
|
|
|
- x:Name="BtnReAdd"
|
|
|
- HorizontalAlignment="Right" VerticalAlignment="Top"
|
|
|
- Height="24" Width="24" IconHeight="20" IconWidth="20"
|
|
|
- Icon="{StaticResource Ic_AddButtonPath}" IconFill="Red"
|
|
|
- IconPress="{StaticResource Ic_AddButtonPath}" IconPressFill="#C04CF8"
|
|
|
- IconMouseOver="{StaticResource Ic_AddButtonPath}" IconMouseOverFill="#C04CF8" Command="{Binding OpenImageCommnad}"/>
|
|
|
- </Grid>
|
|
|
- <CheckBox Grid.Row="1" Width="20" Height="20" IsChecked="{Binding IsRemoveBackground}"/>
|
|
|
- </Grid>
|
|
|
- </TabItem>
|
|
|
- </TabControl>
|
|
|
- </cus:DialogContent.Content>
|
|
|
- <cus:DialogContent.BottmBar>
|
|
|
- <Grid>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="50*" />
|
|
|
- <ColumnDefinition Width="50*" />
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Button
|
|
|
- Grid.Column="0"
|
|
|
- Width="150"
|
|
|
- Height="32"
|
|
|
- Margin="25,0,0,0"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- Command="{Binding CreateCommnad}"
|
|
|
- Content="确定" />
|
|
|
- <Button
|
|
|
- Grid.Column="1"
|
|
|
- Width="150"
|
|
|
- Height="32"
|
|
|
- Margin="0,0,25,0"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Command="{Binding CancelCommand}"
|
|
|
- Content="取消" />
|
|
|
- </Grid>
|
|
|
- </cus:DialogContent.BottmBar>
|
|
|
- </cus:DialogContent>
|
|
|
-</UserControl>
|