InsertDialog.xaml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <UserControl
  2. x:Class="PDF_Office.Views.Dialog.PageEditDialogs.InsertDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PDF_Office.Views.Dialog.PageEditDialogs"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pageeditdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.PageEditDialogs"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="480"
  12. Height="472"
  13. d:DataContext="{d:DesignInstance Type=pageeditdialogs:InsertDialogViewModel}"
  14. d:DesignHeight="450"
  15. d:DesignWidth="800"
  16. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. mc:Ignorable="d">
  19. <cus:DialogContent Header="插入自定义页面">
  20. <cus:DialogContent.Content>
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition />
  24. <RowDefinition Height="auto" />
  25. <RowDefinition Height="auto" />
  26. </Grid.RowDefinitions>
  27. <ListBox BorderThickness="0" />
  28. <StackPanel Grid.Row="1" Margin="16,0">
  29. <TextBlock
  30. FontSize="14"
  31. FontWeight="SemiBold"
  32. Text="页面大小" />
  33. <RadioButton
  34. Margin="0,12,0,0"
  35. Content="当前页"
  36. GroupName="PageSize" />
  37. <StackPanel Margin="0,12" Orientation="Horizontal">
  38. <RadioButton
  39. VerticalAlignment="Center"
  40. Content="标准"
  41. GroupName="PageSize" />
  42. <ComboBox Margin="8,0" />
  43. </StackPanel>
  44. <StackPanel Margin="0,0,0,12" Orientation="Horizontal">
  45. <RadioButton
  46. VerticalAlignment="Center"
  47. Content="自定义"
  48. GroupName="PageSize" />
  49. <TextBox
  50. Width="80"
  51. Height="32"
  52. Margin="8,0"
  53. VerticalAlignment="Center" />
  54. <TextBlock VerticalAlignment="Center" Text="X" />
  55. <TextBox
  56. Width="80"
  57. Height="32"
  58. Margin="8,0"
  59. VerticalAlignment="Center" />
  60. <ComboBox Width="80" />
  61. </StackPanel>
  62. </StackPanel>
  63. <StackPanel Grid.Row="2" Margin="16,0">
  64. <TextBlock
  65. FontSize="14"
  66. FontWeight="SemiBold"
  67. Text="方向" />
  68. <StackPanel Orientation="Horizontal">
  69. <RadioButton Margin="0,12,0,16" Content="纵向页面" />
  70. <RadioButton Margin="24,12,0,16" Content="横向页面" />
  71. </StackPanel>
  72. </StackPanel>
  73. </Grid>
  74. </cus:DialogContent.Content>
  75. <cus:DialogContent.BottmBar >
  76. <Grid>
  77. <Button
  78. Width="98"
  79. Height="32"
  80. Margin="16,0"
  81. HorizontalAlignment="Right"
  82. Command="{Binding CancelCommand}"
  83. Content="取消" />
  84. <Button
  85. Width="98"
  86. Height="32"
  87. Margin="124,0"
  88. HorizontalAlignment="Right"
  89. Command="{Binding InsertCommnad}"
  90. Content="插入" />
  91. </Grid>
  92. </cus:DialogContent.BottmBar>
  93. </cus:DialogContent>
  94. </UserControl>