DynamicPropertyDialog.xaml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <UserControl
  2. x:Class="PDF_Master.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_Master.ViewModels.PropertyPanel.AnnotPanel"
  6. xmlns:cus="clr-namespace:PDF_Master.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_Master.Views.PropertyPanel.AnnotPanel"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. xmlns:prism="http://prismlibrary.com/"
  12. Width="432"
  13. Height="162"
  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. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  20. <Button
  21. Width="80"
  22. Height="32"
  23. Style="{StaticResource Btn.cta}"
  24. Command="{Binding ApplyCommnad}"
  25. Content="确定" />
  26. <Button
  27. Width="80"
  28. Height="32"
  29. Margin="16,0"
  30. Style="{StaticResource btn.sec}"
  31. Command="{Binding CancelCommand}"
  32. Content="取消" />
  33. </StackPanel>
  34. </cus:DialogContent.BottmBar>
  35. <StackPanel
  36. Grid.Row="1"
  37. Height="50"
  38. HorizontalAlignment="Center"
  39. Orientation="Horizontal">
  40. <CheckBox
  41. x:Name="chkAuthor"
  42. Margin="0,0,0,8"
  43. Padding="7,0,0,0"
  44. VerticalAlignment="Center"
  45. Content="Author"
  46. FontFamily="Seoge UI"
  47. FontSize="14"
  48. IsChecked="{Binding IsChecked}" />
  49. <TextBox
  50. x:Name="txtAuthor"
  51. Width="152"
  52. Height="32"
  53. Margin="0,0,0,8"
  54. HorizontalAlignment="Right"
  55. VerticalContentAlignment="Center"
  56. IsEnabled="{Binding IsChecked, ElementName=chkAuthor}"
  57. Text="{Binding Author, Mode=TwoWay}" />
  58. <TextBlock
  59. x:Name="lbCreateDate"
  60. Grid.Row="1"
  61. Margin="27,0,0,0"
  62. VerticalAlignment="Center"
  63. FontFamily="Seoge UI"
  64. FontSize="14"
  65. Foreground="Black"
  66. Text="Date" />
  67. <ComboBox
  68. x:Name="txtCreateDate"
  69. Grid.Row="1"
  70. Width="152"
  71. HorizontalAlignment="Right"
  72. Background="Transparent"
  73. BorderBrush="#FFE2E3E6"
  74. BorderThickness="1"
  75. ItemsSource="{Binding DateFormatList}"
  76. SelectedIndex="{Binding SelectedIndex}" />
  77. </StackPanel>
  78. </cus:DialogContent>
  79. </UserControl>