DynamicPropertyDialog.xaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. Width="500"
  12. Height="300"
  13. d:DataContext="{d:DesignInstance Type={x:Type annotpanel:DynamicPropertyDialogViewModel}}"
  14. mc:Ignorable="d">
  15. <cus:DialogContent Header="动态图章">
  16. <cus:DialogContent.BottmBar>
  17. <Grid>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="50*" />
  20. <ColumnDefinition Width="50*" />
  21. </Grid.ColumnDefinitions>
  22. <Button
  23. Grid.Column="0"
  24. Width="150"
  25. Height="32"
  26. Margin="25,0,0,0"
  27. HorizontalAlignment="Left"
  28. Command="{Binding ApplyCommnad}"
  29. Content="确定" />
  30. <Button
  31. Grid.Column="1"
  32. Width="150"
  33. Height="32"
  34. Margin="0,0,25,0"
  35. HorizontalAlignment="Right"
  36. Command="{Binding CancelCommand}"
  37. Content="取消" />
  38. </Grid>
  39. </cus:DialogContent.BottmBar>
  40. <StackPanel
  41. Grid.Row="1"
  42. Height="50"
  43. HorizontalAlignment="Center"
  44. Orientation="Horizontal">
  45. <CheckBox
  46. x:Name="chkAuthor"
  47. Margin="0,0,0,8"
  48. Padding="7,0,0,0"
  49. VerticalAlignment="Center"
  50. Content="Author"
  51. FontFamily="Seoge UI"
  52. FontSize="14"
  53. IsChecked="{Binding IsChecked}" />
  54. <TextBox
  55. x:Name="txtAuthor"
  56. Width="152"
  57. Height="32"
  58. Margin="0,0,0,8"
  59. HorizontalAlignment="Right"
  60. VerticalContentAlignment="Center"
  61. IsEnabled="{Binding IsChecked, ElementName=chkAuthor}"
  62. Text="{Binding Author, Mode=TwoWay}" />
  63. <TextBlock
  64. x:Name="lbCreateDate"
  65. Grid.Row="1"
  66. Margin="27,0,0,0"
  67. VerticalAlignment="Center"
  68. FontFamily="Seoge UI"
  69. FontSize="14"
  70. Foreground="Black"
  71. Text="Date" />
  72. <ComboBox
  73. x:Name="txtCreateDate"
  74. Grid.Row="1"
  75. Width="152"
  76. HorizontalAlignment="Right"
  77. Background="Transparent"
  78. BorderBrush="#FFE2E3E6"
  79. BorderThickness="1"
  80. ItemsSource="{Binding DateFormatList}"
  81. SelectedIndex="{Binding SelectedIndex}" />
  82. </StackPanel>
  83. </cus:DialogContent>
  84. </UserControl>