CreateBlankPageSettingDialog.xaml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <Window x:Class="Compdfkit_Tools.PDFControl.CreateBlankPageSettingDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.PDFControl"
  7. mc:Ignorable="d"
  8. ResizeMode="NoResize"
  9. ShowInTaskbar="False"
  10. WindowStartupLocation="CenterScreen"
  11. Title="Create a blank page" Height="370" Width="386">
  12. <Window.Resources>
  13. <ResourceDictionary>
  14. <ResourceDictionary.MergedDictionaries>
  15. <ResourceDictionary Source="../../Asset/Styles/RadioButtonStyle.xaml"></ResourceDictionary>
  16. </ResourceDictionary.MergedDictionaries>
  17. </ResourceDictionary>
  18. </Window.Resources>
  19. <Grid Margin="10,20,5,0">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="154"></RowDefinition>
  22. <RowDefinition Height="104"></RowDefinition>
  23. <RowDefinition Height="40"></RowDefinition>
  24. </Grid.RowDefinitions>
  25. <Grid Background="White" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  26. <TextBlock Foreground="#001A4E" FontFamily="Microsoft YaHei" Text="Select page size" FontWeight="DemiBold" FontSize="14"></TextBlock>
  27. </Grid>
  28. <Border Margin="0,10,7,12" BorderBrush="#33000000" BorderThickness="1">
  29. <Grid Margin="10,10,10,10" VerticalAlignment="Center" Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Border}}}">
  30. <Grid.RowDefinitions>
  31. <RowDefinition></RowDefinition>
  32. <RowDefinition></RowDefinition>
  33. <RowDefinition></RowDefinition>
  34. </Grid.RowDefinitions>
  35. <RadioButton x:Name="A3Rdo" Margin="0,10,0,0" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14" Content="A3 (420*297mm)"></RadioButton>
  36. <RadioButton Grid.Row="1" x:Name="A4Rdo" IsChecked="True" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14" Content="A4 (210*297mm)"></RadioButton>
  37. <RadioButton Grid.Row="2" x:Name="A5Rdo" Margin="0,0,0,10" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14" Content="A5 (148*219mm)"></RadioButton>
  38. </Grid>
  39. </Border>
  40. <Grid Grid.Row="1" Background="White" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  41. <TextBlock Foreground="#001A4E" FontFamily="Microsoft YaHei" Text="Select Page Orientation" FontWeight="DemiBold" FontSize="14"></TextBlock>
  42. </Grid>
  43. <Border Grid.Row="1" Margin="0,10,7,12" BorderBrush="#33000000" BorderThickness="1">
  44. <Grid Margin="10" VerticalAlignment="Center" Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Border}}}">
  45. <Grid.RowDefinitions>
  46. <RowDefinition></RowDefinition>
  47. <RowDefinition></RowDefinition>
  48. </Grid.RowDefinitions>
  49. <RadioButton x:Name="HorizontalRdo" Margin="0,10,0,0" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14" Content="Orthogonal"></RadioButton>
  50. <RadioButton Grid.Row="1" x:Name="VerticalRdo" Margin="0,0,0,10" IsChecked="True" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14" Content="Vertically"></RadioButton>
  51. </Grid>
  52. </Border>
  53. <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
  54. <Button Content="Cancel" Width="112" Height="32" FontFamily="Microsoft YaHei" FontSize="14" Click="Cancel_Click"></Button>
  55. <Button Content="OK" Width="112" Height="32" FontFamily="Microsoft YaHei" FontSize="14" Margin="10,0,10,0" Click="Confirm_Click"></Button>
  56. </StackPanel>
  57. </Grid>
  58. </Window>