CreateFromHtmlDialog.xaml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.CreateFromHtmlDialog"
  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_Master.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:homepagetoolsdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.HomePageToolsDialogs"
  8. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.HomePageToolsDialogs"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="432"
  12. Height="298"
  13. d:DataContext="{d:DesignInstance Type=homepagetoolsdialogs:CreateFromHtmlDialogViewModel}"
  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="New From Web Page">
  20. <StackPanel Margin="16,0">
  21. <TextBlock Height="24" Text="Select Files" />
  22. <Grid Margin="0,8">
  23. <cus:TextBoxEx
  24. Width="360"
  25. Height="32"
  26. HorizontalAlignment="Left"
  27. CornerRadius="4"
  28. IsReadOnly="True"
  29. PlaceholderText="Select Files(.html)"
  30. Text="{Binding FilePath, Mode=TwoWay}" />
  31. <Button
  32. Width="32"
  33. Height="32"
  34. HorizontalAlignment="Right"
  35. Command="{Binding OpenFileCommnad}"
  36. Style="{StaticResource btn.sec}">
  37. <Path
  38. Width="32"
  39. Height="32"
  40. Data="M14.3972 13.5001L13.9519 12.8321L12.8269 11.1446C12.8084 11.1168 12.7771 11.1001 12.7437 11.1001H9.6C9.54477 11.1001 9.5 11.1449 9.5 11.2001V20.8001C9.5 20.8553 9.54477 20.9001 9.6 20.9001H22.4C22.4552 20.9001 22.5 20.8553 22.5 20.8001V13.6001C22.5 13.5449 22.4552 13.5001 22.4 13.5001H15.2H14.3972ZM9.6 9.6001C8.71634 9.6001 8 10.3164 8 11.2001V20.8001C8 21.6838 8.71634 22.4001 9.6 22.4001H22.4C23.2837 22.4001 24 21.6838 24 20.8001V13.6001C24 12.7164 23.2837 12.0001 22.4 12.0001H15.2L14.075 10.3126C13.7782 9.86746 13.2787 9.6001 12.7437 9.6001H9.6Z"
  41. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  42. </Button>
  43. </Grid>
  44. <TextBlock
  45. Height="20"
  46. Margin="0,10,0,0"
  47. Text="Page Configuration" />
  48. <StackPanel Margin="0,8" Orientation="Horizontal">
  49. <TextBlock
  50. MinWidth="62"
  51. VerticalAlignment="Center"
  52. Text="Page Size:" />
  53. <ComboBox
  54. Width="322"
  55. Height="32"
  56. Margin="16,0,0,0"
  57. ItemsSource="{Binding PageSizes}"
  58. SelectedIndex="{Binding SelectedIndex}" />
  59. </StackPanel>
  60. <StackPanel Orientation="Horizontal">
  61. <TextBlock
  62. MinWidth="62"
  63. VerticalAlignment="Center"
  64. Text="Spaceing:" />
  65. <cus:NumericUpDown
  66. Width="72"
  67. Height="32"
  68. Margin="16,0,16,0"
  69. Minimum="0"
  70. Value="{Binding Margin}" />
  71. <TextBlock VerticalAlignment="Center" Text="mm" />
  72. </StackPanel>
  73. </StackPanel>
  74. <cus:DialogContent.BottmBar>
  75. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  76. <Button
  77. Width="80"
  78. Height="32"
  79. Command="{Binding CreateCommand}"
  80. Content="Open"
  81. Style="{StaticResource Btn.cta}" />
  82. <Button
  83. Width="80"
  84. Height="32"
  85. Margin="16,0"
  86. Command="{Binding CancelCommand}"
  87. Content="Cancel"
  88. Style="{StaticResource btn.sec}" />
  89. </StackPanel>
  90. </cus:DialogContent.BottmBar>
  91. </cus:DialogContent>
  92. </UserControl>