CustomCreateDialog.xaml 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.CustomCreateDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. 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}"
  7. mc:Ignorable="d" >
  8. <cus:DialogContent Header="新建图章">
  9. <cus:DialogContent.Content>
  10. <TabControl Grid.Row="1" Name="StampTabControl" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Style="{StaticResource TabControlWithUnderLineStyle}">
  11. <TabItem x:Name="文字图章"
  12. Header="Standard"
  13. FontFamily="Segoe UI" Foreground="#FF666666"
  14. HorizontalContentAlignment="Center"
  15. FontSize="16"
  16. Height="40"
  17. Width="88"
  18. IsSelected="True">
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="*"/>
  22. <RowDefinition Height="*"/>
  23. <RowDefinition Height="*"/>
  24. <RowDefinition Height="*"/>
  25. </Grid.RowDefinitions>
  26. <Image Height="50" Source="{Binding ImageSource}"/>
  27. <TextBox Grid.Row="1" Text="{Binding StampText,Mode=TwoWay}" TextChanged="TextBox_TextChanged">
  28. <i:Interaction.Triggers>
  29. <i:EventTrigger EventName="LostFocus">
  30. <i:InvokeCommandAction Command="{Binding UpDataDynamicCommnad}" PassEventArgsToCommand="True" />
  31. </i:EventTrigger>
  32. <i:EventTrigger EventName="KeyDown">
  33. <i:InvokeCommandAction Command="{Binding KeyDown}" PassEventArgsToCommand="True" />
  34. </i:EventTrigger>
  35. </i:Interaction.Triggers>
  36. </TextBox>
  37. <Grid Grid.Row="2">
  38. <StackPanel Orientation="Horizontal">
  39. <RadioButton Tag="1" Checked="RadioButton_Checked"/>
  40. <RadioButton Tag="2" Checked="RadioButton_Checked"/>
  41. <RadioButton Tag="3" Checked="RadioButton_Checked"/>
  42. <RadioButton Tag="4" Checked="RadioButton_Checked"/>
  43. <RadioButton Tag="5" Checked="RadioButton_Checked"/>
  44. <RadioButton Tag="6" Checked="RadioButton_Checked"/>
  45. <RadioButton Tag="7" Checked="RadioButton_Checked"/>
  46. <RadioButton Tag="8" Checked="RadioButton_Checked"/>
  47. <RadioButton Tag="9" Checked="RadioButton_Checked"/>
  48. <RadioButton Tag="10" Checked="RadioButton_Checked"/>
  49. <RadioButton Tag="11" Checked="RadioButton_Checked"/>
  50. </StackPanel>
  51. </Grid>
  52. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center">
  53. <CheckBox Name="Date" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Content="Date" Padding="7 0 0 0" IsChecked="{Binding IsCheckedDate,Mode=TwoWay}"/>
  54. <CheckBox Name="Time" VerticalAlignment="Center" FontFamily="Seoge UI" FontSize="14" Content="Time" Padding="7 0 0 0" IsChecked="{Binding IsCheckedTime,Mode=TwoWay}"/>
  55. </StackPanel>
  56. </Grid>
  57. </TabItem>
  58. <TabItem x:Name="图片图章"
  59. Header="Dynamic"
  60. FontFamily="Segoe UI" Foreground="#FF666666"
  61. HorizontalContentAlignment="Center"
  62. FontSize="16"
  63. Width="86">
  64. <Image/>
  65. </TabItem>
  66. </TabControl>
  67. </cus:DialogContent.Content>
  68. <cus:DialogContent.BottmBar>
  69. <Grid>
  70. <Grid.ColumnDefinitions>
  71. <ColumnDefinition Width="50*" />
  72. <ColumnDefinition Width="50*" />
  73. </Grid.ColumnDefinitions>
  74. <Button
  75. Grid.Column="0"
  76. Width="150"
  77. Height="32"
  78. Margin="25,0,0,0"
  79. HorizontalAlignment="Left"
  80. Command="{Binding CreateCommnad}"
  81. Content="确定" />
  82. <Button
  83. Grid.Column="1"
  84. Width="150"
  85. Height="32"
  86. Margin="0,0,25,0"
  87. HorizontalAlignment="Right"
  88. Command="{Binding CancelCommand}"
  89. Content="取消" />
  90. </Grid>
  91. </cus:DialogContent.BottmBar>
  92. </cus:DialogContent>
  93. </UserControl>