BCDialogVisualSettings.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <Window
  2. x:Uid="Window_1"
  3. x:Class="OINA.Extender.WPF.Testharness.BCDialogVisualSettings"
  4. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  6. xmlns:testharness="clr-namespace:OINA.Extender.WPF.Testharness"
  7. xmlns:system="clr-namespace:System;assembly=mscorlib"
  8. Title="Brightness/Contrast Dialog Visual Settings"
  9. Height="440"
  10. Width="390"
  11. ResizeMode="NoResize"
  12. WindowStyle="ToolWindow"
  13. WindowStartupLocation="CenterOwner">
  14. <Grid
  15. x:Uid="Grid_1">
  16. <Grid
  17. x:Uid="Grid_2">
  18. <Grid.RowDefinitions>
  19. <RowDefinition
  20. x:Uid="RowDefinition_1" />
  21. <RowDefinition
  22. x:Uid="RowDefinition_2" />
  23. <RowDefinition
  24. x:Uid="RowDefinition_3"
  25. Height="Auto"/>
  26. <RowDefinition
  27. x:Uid="RowDefinition_4" />
  28. <RowDefinition
  29. x:Uid="RowDefinition_5" />
  30. <RowDefinition
  31. x:Uid="RowDefinition_6" />
  32. <RowDefinition
  33. x:Uid="RowDefinition_7" />
  34. <RowDefinition
  35. x:Uid="RowDefinition_12" />
  36. <RowDefinition
  37. x:Uid="RowDefinition_13" />
  38. </Grid.RowDefinitions>
  39. <Grid.ColumnDefinitions>
  40. <ColumnDefinition
  41. x:Uid="ColumnDefinition_1"
  42. Width="Auto" />
  43. <ColumnDefinition
  44. x:Uid="ColumnDefinition_2" />
  45. </Grid.ColumnDefinitions>
  46. <Label
  47. x:Uid="Label_6"
  48. Grid.Row="0"
  49. Grid.Column="0"
  50. Content="Background Colour"
  51. VerticalContentAlignment="Center" />
  52. <testharness:ColorPickerCombo
  53. Grid.Row="0"
  54. Grid.Column="1"
  55. x:Uid="BackgroundColorCombo"
  56. x:Name="BackgroundColorCombo"
  57. Margin="5"
  58. SelectedColor="{Binding BackgroundColor, Mode=TwoWay}">
  59. </testharness:ColorPickerCombo>
  60. <Label
  61. x:Uid="Label_2"
  62. Grid.Row="1"
  63. Grid.Column="0"
  64. Content="Control Background Colour"
  65. VerticalContentAlignment="Center" />
  66. <testharness:ColorPickerCombo
  67. Grid.Row="1"
  68. Grid.Column="1"
  69. x:Uid="ControlBackgroundColorCombo"
  70. x:Name="ControlBackgroundColorCombo"
  71. Margin="5"
  72. SelectedColor="{Binding GenericControlBackgroundColor, Mode=TwoWay}">
  73. </testharness:ColorPickerCombo>
  74. <GroupBox
  75. Grid.Row="2"
  76. Grid.Column="0"
  77. Grid.ColumnSpan="2"
  78. Margin="5"
  79. Header="Header Font Settings"
  80. x:Uid="GroupBox_2">
  81. <Grid
  82. x:Uid="Grid_7">
  83. <Grid.ColumnDefinitions>
  84. <ColumnDefinition
  85. x:Uid="ColumnDefinition_13" />
  86. <ColumnDefinition
  87. x:Uid="ColumnDefinition_14" />
  88. <ColumnDefinition
  89. x:Uid="ColumnDefinition_15" />
  90. </Grid.ColumnDefinitions>
  91. <Grid.RowDefinitions>
  92. <RowDefinition
  93. x:Uid="RowDefinition_8" />
  94. <RowDefinition
  95. x:Uid="RowDefinition_9" />
  96. <RowDefinition
  97. x:Uid="RowDefinition_10" />
  98. <RowDefinition
  99. x:Uid="RowDefinition_11" />
  100. </Grid.RowDefinitions>
  101. <Label
  102. Grid.Row="0"
  103. Grid.ColumnSpan="2"
  104. Margin="5,0"
  105. Content="Font Family"
  106. x:Uid="Label_20" />
  107. <ComboBox
  108. x:Name="HeaderFontFamilyCombo"
  109. Grid.Row="1"
  110. Grid.Column="0"
  111. Grid.ColumnSpan="2"
  112. Margin="5,0"
  113. ItemsSource="{Binding Source={x:Static Fonts.SystemFontFamilies}}"
  114. SelectedValue="{Binding HeaderFontFamily, Mode=TwoWay}"
  115. x:Uid="HeaderFontFamilyCombo">
  116. <ComboBox.ItemTemplate>
  117. <DataTemplate
  118. x:Uid="DataTemplate_6">
  119. <StackPanel
  120. Height="18"
  121. Margin="0,0,0,2"
  122. Orientation="Horizontal"
  123. x:Uid="StackPanel_12">
  124. <TextBlock
  125. Margin="8,0,0,0"
  126. FontFamily="{Binding}"
  127. Text="{Binding}"
  128. x:Uid="TextBlock_7" />
  129. </StackPanel>
  130. </DataTemplate>
  131. </ComboBox.ItemTemplate>
  132. </ComboBox>
  133. <Label
  134. x:Uid="Label_5"
  135. Grid.Row="0"
  136. Grid.Column="2"
  137. Content="Font Size"
  138. VerticalContentAlignment="Center" />
  139. <ComboBox
  140. x:Uid="HeaderFontSizeCombo"
  141. x:Name="HeaderFontSizeCombo"
  142. SelectedValue="{Binding HeaderFontSize, Mode=TwoWay }"
  143. Grid.Row="1"
  144. Grid.Column="3"
  145. Margin="5,0">
  146. <ComboBox.ItemsSource>
  147. <x:Array
  148. x:Uid="x:Array_1"
  149. Type="system:Double">
  150. <system:Double
  151. x:Uid="sys:Double_00">8</system:Double>
  152. <system:Double
  153. x:Uid="sys:Double_0">10</system:Double>
  154. <system:Double
  155. x:Uid="sys:Double_1">12</system:Double>
  156. <system:Double
  157. x:Uid="sys:Double_2">14</system:Double>
  158. <system:Double
  159. x:Uid="sys:Double_3">16</system:Double>
  160. <system:Double
  161. x:Uid="sys:Double_4">18</system:Double>
  162. </x:Array>
  163. </ComboBox.ItemsSource>
  164. </ComboBox>
  165. <Label
  166. Grid.Row="2"
  167. Grid.Column="0"
  168. Margin="5,0"
  169. Content="Font Style"
  170. x:Uid="Label_21" />
  171. <ComboBox
  172. x:Name="HeaderFontStyleCombo"
  173. Grid.Row="3"
  174. Grid.Column="0"
  175. Margin="5,0"
  176. SelectedValue="{Binding HeaderFontStyle, Mode=TwoWay}"
  177. x:Uid="HeaderFontStyleCombo">
  178. <FontStyle
  179. x:Uid="FontStyle_1">Normal</FontStyle>
  180. <FontStyle
  181. x:Uid="FontStyle_2">Italic</FontStyle>
  182. <FontStyle
  183. x:Uid="FontStyle_3">Oblique</FontStyle>
  184. </ComboBox>
  185. <Label
  186. Grid.Row="2"
  187. Grid.Column="1"
  188. Margin="5,0"
  189. Content="Font Color"
  190. x:Uid="Label_22" />
  191. <testharness:ColorPickerCombo
  192. Grid.Row="3"
  193. Grid.Column="1"
  194. Grid.ColumnSpan="2"
  195. x:Uid="HeaderFontColorCombo"
  196. x:Name="HeaderFontColorCombo"
  197. Margin="5,0"
  198. SelectedColor="{Binding HeaderFontColor, Mode=TwoWay}">
  199. </testharness:ColorPickerCombo>
  200. </Grid>
  201. </GroupBox>
  202. <Label
  203. x:Uid="Label_23"
  204. Grid.Row="3"
  205. Grid.Column="0"
  206. Content="Plotter/Combo Background Colour"
  207. VerticalContentAlignment="Center" />
  208. <testharness:ColorPickerCombo
  209. Grid.Row="3"
  210. Grid.Column="1"
  211. x:Uid="PlotterBackgroundColorCombo"
  212. x:Name="PlotterBackgroundColorCombo"
  213. Margin="5"
  214. SelectedColor="{Binding PlotterBackgroundColor, Mode=TwoWay}">
  215. </testharness:ColorPickerCombo>
  216. <Label
  217. x:Uid="Label_3"
  218. Grid.Row="4"
  219. Grid.Column="0"
  220. Content="Combo Line Colour"
  221. VerticalContentAlignment="Center" />
  222. <testharness:ColorPickerCombo
  223. Grid.Row="4"
  224. Grid.Column="1"
  225. x:Uid="ComboLineColorCombo"
  226. x:Name="ComboLineColorCombo"
  227. Margin="5"
  228. SelectedColor="{Binding ComboLineColor, Mode=TwoWay}">
  229. </testharness:ColorPickerCombo>
  230. <Label
  231. x:Uid="Label_4"
  232. Grid.Row="5"
  233. Grid.Column="0"
  234. Content="Plotter Axis Colour"
  235. VerticalContentAlignment="Center" />
  236. <testharness:ColorPickerCombo
  237. Grid.Row="5"
  238. Grid.Column="1"
  239. x:Uid="PlotterAxisColorCombo"
  240. x:Name="PlotterAxisColorCombo"
  241. Margin="5"
  242. SelectedColor="{Binding AxisMarkersColor, Mode=TwoWay}">
  243. </testharness:ColorPickerCombo>
  244. <Label
  245. x:Uid="Label_24"
  246. Grid.Row="6"
  247. Grid.Column="0"
  248. Content="Plotter Axis Ticks Colour"
  249. VerticalContentAlignment="Center" />
  250. <testharness:ColorPickerCombo
  251. Grid.Row="6"
  252. Grid.Column="1"
  253. x:Uid="PlotterAxisTicksColorCombo"
  254. x:Name="PlotterAxisTicksColorCombo"
  255. Margin="5"
  256. SelectedColor="{Binding AxisTicksColor, Mode=TwoWay}">
  257. </testharness:ColorPickerCombo>
  258. <Label
  259. x:Uid="Label_25"
  260. Grid.Row="7"
  261. Grid.Column="0"
  262. Content="Plotter Line Colour"
  263. VerticalContentAlignment="Center" />
  264. <testharness:ColorPickerCombo
  265. Grid.Row="7"
  266. Grid.Column="1"
  267. x:Uid="PlotterLineColorCombo"
  268. x:Name="PlotterLineColorCombo"
  269. Margin="5"
  270. SelectedColor="{Binding PlotterLineColor, Mode=TwoWay}">
  271. </testharness:ColorPickerCombo>
  272. <Button
  273. x:Uid="ResetStyleButton"
  274. x:Name="ResetStyleButton"
  275. Content="Reset Style"
  276. Grid.Row="8"
  277. Grid.ColumnSpan="2"
  278. Margin="5"
  279. Click="ResetStyleButton_Click" />
  280. </Grid>
  281. </Grid>
  282. </Window>