BackgroundCreateFileContent.xaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundCreateFileContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. prism:ViewModelLocator.AutoWireViewModel="True"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  8. mc:Ignorable="d"
  9. d:DesignHeight="632"
  10. d:DesignWidth="260">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="../../../Styles/CheckBoxStyle.xaml"/>
  15. </ResourceDictionary.MergedDictionaries>
  16. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Grid Margin="16,0,0,0">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="48"></RowDefinition>
  21. <RowDefinition Height="157"></RowDefinition>
  22. <RowDefinition Height="163"></RowDefinition>
  23. <RowDefinition Height="103"></RowDefinition>
  24. <RowDefinition></RowDefinition>
  25. </Grid.RowDefinitions>
  26. <Grid Grid.Row="0">
  27. <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom">
  28. <TextBox Height="32" Width="189" Margin="0,0,7,0"></TextBox>
  29. <Button Height="32" Width="32"></Button>
  30. </StackPanel>
  31. </Grid>
  32. <Grid Grid.Row="1">
  33. <StackPanel Orientation="Vertical">
  34. <TextBlock Text="外观" Margin="0,16,0,8" Foreground="#666666"></TextBlock>
  35. <StackPanel Orientation="Horizontal">
  36. <TextBlock Height="24" Width="24" Background= "Bisque" Margin="0,0,8,0"></TextBlock>
  37. <cus:CommonWritableComboBox HorizontalAlignment="Left" Width="66" Height="32" Margin="0,0,28,0" TypeSouce="{Binding RotationList, Mode=TwoWay}" Text="0"></cus:CommonWritableComboBox>
  38. <TextBlock Height="24" Width="24" Background="CadetBlue" Margin="0,0,8,0"></TextBlock>
  39. <cus:CommonWritableComboBox HorizontalAlignment="Left" Width="66" Height="32" Margin="0,0,28,0" TypeSouce="{Binding RotationList, Mode=TwoWay}" Text="100 %"></cus:CommonWritableComboBox>
  40. </StackPanel>
  41. <StackPanel Orientation="Horizontal"></StackPanel>
  42. <Grid Margin="0,19,0,0">
  43. <CheckBox Grid.Column="0" Style="{StaticResource CheckBoxStyle}" Content="相对目标页面的比例" Margin="0,0,0,0" Height="22"></CheckBox>
  44. </Grid>
  45. <cus:CommonWritableComboBox HorizontalAlignment="Left" Width="66" Height="32" Margin="0,11,28,0" TypeSouce="{Binding RotationList, Mode=TwoWay}" Text="100 %"></cus:CommonWritableComboBox>
  46. </StackPanel>
  47. </Grid>
  48. <Grid Grid.Row="2" Margin="0,16,0,0" VerticalAlignment="Bottom">
  49. <Grid.ColumnDefinitions>
  50. <ColumnDefinition Width="3*"/>
  51. <ColumnDefinition Width="241*"/>
  52. </Grid.ColumnDefinitions>
  53. <StackPanel Grid.ColumnSpan="2">
  54. <TextBlock Text="位置" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
  55. <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
  56. <Grid Width="74" Height="74">
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition></ColumnDefinition>
  59. <ColumnDefinition></ColumnDefinition>
  60. <ColumnDefinition></ColumnDefinition>
  61. </Grid.ColumnDefinitions>
  62. <Grid.RowDefinitions>
  63. <RowDefinition></RowDefinition>
  64. <RowDefinition></RowDefinition>
  65. <RowDefinition></RowDefinition>
  66. </Grid.RowDefinitions>
  67. <Button Grid.Column="0" Grid.Row="0" Tag="0" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[0],Mode=TwoWay}"></Button>
  68. <Button Grid.Column="1" Grid.Row="0" Tag="1" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[1], Mode=TwoWay}"></Button>
  69. <Button Grid.Column="2" Grid.Row="0" Tag="2" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[2], Mode=TwoWay}"></Button>
  70. <Button Grid.Column="0" Grid.Row="1" Tag="10" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[10], Mode=TwoWay}"></Button>
  71. <Button Grid.Column="1" Grid.Row="1" Tag="11" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[11], Mode=TwoWay}"></Button>
  72. <Button Grid.Column="2" Grid.Row="1" Tag="12" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[12], Mode=TwoWay}"></Button>
  73. <Button Grid.Column="0" Grid.Row="2" Tag="20" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[20], Mode=TwoWay}"></Button>
  74. <Button Grid.Column="1" Grid.Row="2" Tag="21" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[21], Mode=TwoWay}"></Button>
  75. <Button Grid.Column="2" Grid.Row="2" Tag="22" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" IsEnabled="{Binding GetLocationFromNumber[22], Mode=TwoWay}"></Button>
  76. </Grid>
  77. <StackPanel Orientation="Vertical" Margin="70,0,0,0">
  78. <StackPanel Orientation="Horizontal">
  79. <TextBlock Text="X" Width="9" Height="20" VerticalAlignment="Center"/>
  80. <cus:NumericUpDown Width="66" Height="32" Margin="9,0,0,0" Text="{Binding HorizOffsetValue, Mode=TwoWay}"></cus:NumericUpDown>
  81. </StackPanel>
  82. <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
  83. <TextBlock Text="Y" Width="9" Height="20" VerticalAlignment="Center"/>
  84. <cus:NumericUpDown Width="66" Height="32" Margin="9,0,0,0" Text="{Binding HorizOffsetValue, Mode=TwoWay}"></cus:NumericUpDown>
  85. </StackPanel>
  86. </StackPanel>
  87. </StackPanel>
  88. </StackPanel>
  89. </Grid>
  90. <Grid Grid.Row="3" Margin="0,16,0,0" VerticalAlignment="Bottom">
  91. <StackPanel Orientation="Vertical">
  92. <TextBlock Text="页面范围" FontSize="12" Foreground="#666666" Height="20" Width="48" HorizontalAlignment="Left"></TextBlock>
  93. <cus:WritableComboBox Height="32" Width="228" Margin="0,8,0,0" HorizontalAlignment="Left"></cus:WritableComboBox>
  94. </StackPanel>
  95. </Grid>
  96. </Grid>
  97. </UserControl>