InsertDialog.xaml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 />
  28. <StackPanel Grid.Row="1" Margin="16,0">
  29. <TextBlock
  30. FontSize="14"
  31. FontWeight="SemiBold"
  32. Text="页面大小" />
  33. <RadioButton Margin="0,12,0,0" Content="当前页" />
  34. <StackPanel Margin="0,12" Orientation="Horizontal">
  35. <RadioButton VerticalAlignment="Center" Content="标准" />
  36. <ComboBox Margin="8,0" />
  37. </StackPanel>
  38. <StackPanel Margin="0,0,0,12" Orientation="Horizontal">
  39. <RadioButton VerticalAlignment="Center" Content="自定义" />
  40. <TextBox
  41. Width="80"
  42. Height="32"
  43. Margin="8,0"
  44. VerticalAlignment="Center" />
  45. <TextBlock VerticalAlignment="Center" Text="X" />
  46. <TextBox
  47. Width="80"
  48. Height="32"
  49. Margin="8,0"
  50. VerticalAlignment="Center" />
  51. <ComboBox Width="80" />
  52. </StackPanel>
  53. </StackPanel>
  54. <StackPanel Grid.Row="2" Margin="16,0">
  55. <TextBlock
  56. FontSize="14"
  57. FontWeight="SemiBold"
  58. Text="方向" />
  59. <StackPanel Orientation="Horizontal">
  60. <RadioButton Margin="0,12,0,16" Content="纵向页面" />
  61. <RadioButton Margin="24,12,0,16" Content="横向页面" />
  62. </StackPanel>
  63. </StackPanel>
  64. </Grid>
  65. </cus:DialogContent.Content>
  66. <cus:DialogContent.BottmBar >
  67. <Grid>
  68. <Button
  69. Width="98"
  70. Height="32"
  71. Margin="16,0"
  72. HorizontalAlignment="Right"
  73. Command="{Binding CancelCommnad}"
  74. Content="取消" />
  75. <Button
  76. Width="98"
  77. Height="32"
  78. Margin="124,0"
  79. HorizontalAlignment="Right"
  80. Command="{Binding InsertCommnad}"
  81. Content="插入" />
  82. </Grid>
  83. </cus:DialogContent.BottmBar>
  84. </cus:DialogContent>
  85. </UserControl>