12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.CustomCreateDialog"
- 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:cus="clr-namespace:PDF_Office.CustomControl" xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" d:DataContext="{d:DesignInstance Type=annotpanel:CustomCreateDialogViewModel}"
- mc:Ignorable="d" >
- <cus:DialogContent Header="新建图章">
- <cus:DialogContent.Content>
- <TabControl Grid.Row="1" Name="StampTabControl" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Style="{StaticResource TabControlWithUnderLineStyle}">
- <TabItem x:Name="文字图章"
- Header="Standard"
- 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 ImageSource}"/>
- <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 Tag="2" Checked="RadioButton_Checked"/>
- <RadioButton Tag="3" Checked="RadioButton_Checked"/>
- <RadioButton Tag="4" Checked="RadioButton_Checked"/>
- <RadioButton Tag="5" Checked="RadioButton_Checked"/>
- <RadioButton Tag="6" Checked="RadioButton_Checked"/>
- <RadioButton Tag="7" Checked="RadioButton_Checked"/>
- <RadioButton Tag="8" Checked="RadioButton_Checked"/>
- <RadioButton Tag="9" Checked="RadioButton_Checked"/>
- <RadioButton Tag="10" Checked="RadioButton_Checked"/>
- <RadioButton Tag="11" Checked="RadioButton_Checked"/>
- </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="Dynamic"
- FontFamily="Segoe UI" Foreground="#FF666666"
- HorizontalContentAlignment="Center"
- FontSize="16"
- Width="86">
- <Image/>
- </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>
|