DynamicPropertyDialog.xaml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <UserControl
  2. x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.DynamicPropertyDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
  6. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. xmlns:prism="http://prismlibrary.com/"
  12. Width="500"
  13. Height="300"
  14. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  15. d:DataContext="{d:DesignInstance Type={x:Type annotpanel:DynamicPropertyDialogViewModel}}"
  16. mc:Ignorable="d">
  17. <cus:DialogContent Header="动态图章">
  18. <cus:DialogContent.BottmBar>
  19. <Grid>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="50*" />
  22. <ColumnDefinition Width="50*" />
  23. </Grid.ColumnDefinitions>
  24. <Button
  25. Grid.Column="0"
  26. Width="150"
  27. Height="32"
  28. Margin="25,0,0,0"
  29. HorizontalAlignment="Left"
  30. Style="{StaticResource Btn.cta}"
  31. Command="{Binding ApplyCommnad}"
  32. Content="确定" />
  33. <Button
  34. Grid.Column="1"
  35. Width="150"
  36. Height="32"
  37. Margin="0,0,25,0"
  38. HorizontalAlignment="Right"
  39. Style="{StaticResource btn.sec}"
  40. Command="{Binding CancelCommand}"
  41. Content="取消" />
  42. </Grid>
  43. </cus:DialogContent.BottmBar>
  44. <StackPanel
  45. Grid.Row="1"
  46. Height="50"
  47. HorizontalAlignment="Center"
  48. Orientation="Horizontal">
  49. <CheckBox
  50. x:Name="chkAuthor"
  51. Margin="0,0,0,8"
  52. Padding="7,0,0,0"
  53. VerticalAlignment="Center"
  54. Content="Author"
  55. FontFamily="Seoge UI"
  56. FontSize="14"
  57. IsChecked="{Binding IsChecked}" />
  58. <TextBox
  59. x:Name="txtAuthor"
  60. Width="152"
  61. Height="32"
  62. Margin="0,0,0,8"
  63. HorizontalAlignment="Right"
  64. VerticalContentAlignment="Center"
  65. IsEnabled="{Binding IsChecked, ElementName=chkAuthor}"
  66. Text="{Binding Author, Mode=TwoWay}" />
  67. <TextBlock
  68. x:Name="lbCreateDate"
  69. Grid.Row="1"
  70. Margin="27,0,0,0"
  71. VerticalAlignment="Center"
  72. FontFamily="Seoge UI"
  73. FontSize="14"
  74. Foreground="Black"
  75. Text="Date" />
  76. <ComboBox
  77. x:Name="txtCreateDate"
  78. Grid.Row="1"
  79. Width="152"
  80. HorizontalAlignment="Right"
  81. Background="Transparent"
  82. BorderBrush="#FFE2E3E6"
  83. BorderThickness="1"
  84. ItemsSource="{Binding DateFormatList}"
  85. SelectedIndex="{Binding SelectedIndex}" />
  86. </StackPanel>
  87. </cus:DialogContent>
  88. </UserControl>