BatesCreateContent.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <UserControl x:Class="PDF_Office.Views.EditTools.Bates.BatesCreateContent"
  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"
  8. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  9. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  10. xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
  11. mc:Ignorable="d"
  12. d:DesignHeight="720"
  13. d:DesignWidth="260" >
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="40"></RowDefinition>
  17. <RowDefinition></RowDefinition>
  18. </Grid.RowDefinitions>
  19. <Grid Grid.Row="0" Visibility="{Binding CreateBaseVisible, Mode=TwoWay}">
  20. <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
  21. <StackPanel Orientation="Horizontal">
  22. <TextBlock Text="&lt;" Margin="0,0,9,0" FontSize="16"></TextBlock>
  23. <TextBlock Text="创建Bates" FontSize="16"></TextBlock>
  24. </StackPanel>
  25. </Button>
  26. <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToTemplateListCommand}">
  27. <StackPanel>
  28. <TextBlock Text="保存至模板" Foreground="#18A0FB"></TextBlock>
  29. <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
  30. </StackPanel>
  31. </Button>
  32. </Grid>
  33. <Grid Grid.Row="0" Visibility="{Binding EditBaseVisible, Mode=TwoWay}">
  34. <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
  35. <StackPanel Orientation="Horizontal">
  36. <TextBlock Text="&lt;" Margin="0,0,9,0" FontSize="16"></TextBlock>
  37. <TextBlock Text="编辑模板" FontSize="16"></TextBlock>
  38. </StackPanel>
  39. </Button>
  40. <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToCurrentTemplateListCommand}">
  41. <StackPanel>
  42. <TextBlock Text="保存" Foreground="#18A0FB"></TextBlock>
  43. <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
  44. </StackPanel>
  45. </Button>
  46. </Grid>
  47. <Grid Grid.Row="1">
  48. <Grid.RowDefinitions>
  49. <RowDefinition Height="116"></RowDefinition>
  50. <RowDefinition Height="116"></RowDefinition>
  51. <RowDefinition Height="189"></RowDefinition>
  52. <RowDefinition Height="172"></RowDefinition>
  53. <RowDefinition></RowDefinition>
  54. </Grid.RowDefinitions>
  55. <Grid Grid.Row="0" Margin="0,16,0,0" Width="228">
  56. <StackPanel>
  57. <TextBlock Text="外观" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
  58. <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
  59. <ComboBox Width="154" Height="32" ></ComboBox>
  60. <ComboBox Width="66" Height="32" Margin="8,0,0,0" ></ComboBox>
  61. </StackPanel>
  62. <CompositeControl:ColorContent x:Name="cusColor" Height="32" Width="66" Margin="0,8,0,0" HorizontalAlignment="Left">
  63. </CompositeControl:ColorContent>
  64. </StackPanel>
  65. </Grid>
  66. <Grid Grid.Row="1" Margin="0,16,0,0" Width="228">
  67. <StackPanel>
  68. <TextBlock Text="页边距" FontSize="12" Foreground="#666666" Height="20" Width="36" HorizontalAlignment="Left"></TextBlock>
  69. <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
  70. <StackPanel Orientation="Vertical" Margin="0,0,0,0">
  71. <StackPanel Orientation="Horizontal">
  72. <TextBlock Text="上" Width="14" Height="20" VerticalAlignment="Center"/>
  73. <cus:NumericUpDown Width="66" Height="32" Margin="9,0,0,0" ></cus:NumericUpDown>
  74. </StackPanel>
  75. <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
  76. <TextBlock Text="左" Width="14" Height="20" VerticalAlignment="Center"/>
  77. <cus:NumericUpDown Width="66" Height="32" Margin="9,0,0,0" ></cus:NumericUpDown>
  78. </StackPanel>
  79. </StackPanel>
  80. <StackPanel Orientation="Vertical" Margin="51,0,0,0">
  81. <StackPanel Orientation="Horizontal">
  82. <TextBlock Text="下" Width="14" Height="20" VerticalAlignment="Center"/>
  83. <cus:NumericUpDown Width="66" Height="32" Margin="9,0,0,0" ></cus:NumericUpDown>
  84. </StackPanel>
  85. <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
  86. <TextBlock Text="右" Width="14" Height="20" VerticalAlignment="Center"/>
  87. <cus:NumericUpDown Width="66" Height="32" Margin="9,0,0,0" Text="{Binding VertOffsetValue,Mode=TwoWay}"></cus:NumericUpDown>
  88. </StackPanel>
  89. </StackPanel>
  90. </StackPanel>
  91. </StackPanel>
  92. </Grid>
  93. <Grid Grid.Row="2" Margin="0,16,0,0" Width="228">
  94. <StackPanel>
  95. <StackPanel>
  96. <TextBlock Text="前缀" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
  97. <TextBlock Height="32"></TextBlock>
  98. </StackPanel>
  99. <StackPanel Margin="0,8,0,0">
  100. <TextBlock Text="后缀" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
  101. <TextBlock Height="32"></TextBlock>
  102. </StackPanel>
  103. <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
  104. <StackPanel>
  105. <TextBlock Text="位数" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
  106. <cus:NumericUpDown Height="32" Width="110"></cus:NumericUpDown>
  107. </StackPanel>
  108. <StackPanel Margin="8,0,0,0">
  109. <TextBlock Text="起始页" FontSize="12" Foreground="#666666" Height="20" Width="36" HorizontalAlignment="Left"></TextBlock>
  110. <ComboBox Height="32" Width="110"></ComboBox>
  111. </StackPanel>
  112. </StackPanel>
  113. </StackPanel>
  114. </Grid>
  115. <Grid Grid.Row="3" Margin="0,16,0,0" Width="228">
  116. <StackPanel>
  117. <StackPanel Orientation="Horizontal">
  118. <TextBlock Text="布局&amp;内容" FontSize="12" Foreground="#666666" Height="20" Width="60"></TextBlock>
  119. <Button Width="22" Height="22" Margin="146,0,0,0">
  120. <TextBlock Text="+" FontSize="19" HorizontalAlignment="Center" VerticalAlignment="Center" Block.TextAlignment="Center" ></TextBlock>
  121. </Button>
  122. </StackPanel>
  123. <Grid Width="228" Height="46" Margin="0,6,0,0">
  124. <Grid.ColumnDefinitions>
  125. <ColumnDefinition Width="75"></ColumnDefinition>
  126. <ColumnDefinition Width="75"></ColumnDefinition>
  127. <ColumnDefinition Width="75"></ColumnDefinition>
  128. </Grid.ColumnDefinitions>
  129. <Grid.RowDefinitions>
  130. <RowDefinition Height="23"></RowDefinition>
  131. <RowDefinition Height="23"></RowDefinition>
  132. </Grid.RowDefinitions>
  133. <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>
  134. <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>
  135. <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>
  136. <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>
  137. <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>
  138. <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>
  139. </Grid>
  140. <TextBox Name="TextValueTextBox" Height="72" Margin="0,8,0,0" FontSize="14" AcceptsReturn="True">
  141. </TextBox>
  142. </StackPanel>
  143. </Grid>
  144. <Grid Grid.Row="4" Margin="0,16,0,0" Width="228">
  145. <StackPanel>
  146. <TextBlock Text="页面范围" FontSize="12" Foreground="#666666" Height="20" Width="48" HorizontalAlignment="Left"></TextBlock>
  147. <cus:WritableComboBox Height="32" Margin="0,8,0,0"></cus:WritableComboBox>
  148. </StackPanel>
  149. </Grid>
  150. </Grid>
  151. </Grid>
  152. </UserControl>