CreateBlankPageSettingDialog.xaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. xmlns:common="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. ResizeMode="NoResize"
  10. ShowInTaskbar="False"
  11. WindowStartupLocation="CenterScreen"
  12. Height="370" Width="386">
  13. <Window.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="../../Asset/Styles/RadioButtonStyle.xaml"></ResourceDictionary>
  17. </ResourceDictionary.MergedDictionaries>
  18. <common:CommonResourceConverter x:Key="CommonResourceConverter"></common:CommonResourceConverter>
  19. </ResourceDictionary>
  20. </Window.Resources>
  21. <Grid Margin="10,20,5,0">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="154"></RowDefinition>
  24. <RowDefinition Height="104"></RowDefinition>
  25. <RowDefinition Height="40"></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <Grid Background="White" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  28. <TextBlock Foreground="#001A4E" FontFamily="Microsoft YaHei" Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Subtitle_PageSize}" FontWeight="DemiBold" FontSize="14"></TextBlock>
  29. </Grid>
  30. <Border Margin="0,10,7,12" BorderBrush="#33000000" BorderThickness="1">
  31. <Grid Margin="10,10,10,10" VerticalAlignment="Center" Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Border}}}">
  32. <Grid.RowDefinitions>
  33. <RowDefinition></RowDefinition>
  34. <RowDefinition></RowDefinition>
  35. <RowDefinition></RowDefinition>
  36. </Grid.RowDefinitions>
  37. <RadioButton x:Name="A3Rdo" Margin="0,10,0,0" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14"
  38. Content="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Option_A3}"></RadioButton>
  39. <RadioButton Grid.Row="1" x:Name="A4Rdo" IsChecked="True" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14"
  40. Content="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Option_A4}"></RadioButton>
  41. <RadioButton Grid.Row="2" x:Name="A5Rdo" Margin="0,0,0,10" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14"
  42. Content="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Option_A5}"></RadioButton>
  43. </Grid>
  44. </Border>
  45. <Grid Grid.Row="1" Background="White" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  46. <TextBlock Foreground="#001A4E" FontFamily="Microsoft YaHei" Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Subtitle_Orientation}" FontWeight="DemiBold" FontSize="14"></TextBlock>
  47. </Grid>
  48. <Border Grid.Row="1" Margin="0,10,7,12" BorderBrush="#33000000" BorderThickness="1">
  49. <Grid Margin="10" VerticalAlignment="Center" Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Border}}}">
  50. <Grid.RowDefinitions>
  51. <RowDefinition></RowDefinition>
  52. <RowDefinition></RowDefinition>
  53. </Grid.RowDefinitions>
  54. <RadioButton x:Name="HorizontalRdo" Margin="0,10,0,0" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14"
  55. Content="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Option_Landscape}"></RadioButton>
  56. <RadioButton Grid.Row="1" x:Name="VerticalRdo" Margin="0,0,0,10" IsChecked="True" VerticalAlignment="Center" FontFamily="Microsoft YaHei" FontSize="14"
  57. Content="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Option_Portrait}"></RadioButton>
  58. </Grid>
  59. </Border>
  60. <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
  61. <Button Content="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Button_Cancel}" Width="112" Height="32" FontFamily="Microsoft YaHei" FontSize="14" Click="Cancel_Click"></Button>
  62. <Button Content="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Button_OK}" Width="112" Height="32" FontFamily="Microsoft YaHei" FontSize="14" Margin="10,0,10,0" Click="Confirm_Click"></Button>
  63. </StackPanel>
  64. </Grid>
  65. </Window>