DetailDialogVisualSettings.xaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <Window
  2. x:Uid="Window_1"
  3. xmlns:Testharness="clr-namespace:OINA.Extender.WPF.Testharness"
  4. x:Class="OINA.Extender.WPF.Testharness.DetailDialogVisualSettings"
  5. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  6. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  7. Title="DetailDialogVisualSettings"
  8. Height="500"
  9. Width="300"
  10. SizeToContent="Height"
  11. DataContext="{Binding RelativeSource={RelativeSource Self}}">
  12. <StackPanel
  13. x:Uid="StackPanel_1">
  14. <GroupBox
  15. x:Uid="GroupBox_1"
  16. Header="Dialog Color Settings">
  17. <Grid
  18. x:Uid="Grid_1">
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition
  21. x:Uid="ColumnDefinition_1" />
  22. <ColumnDefinition
  23. x:Uid="ColumnDefinition_2" />
  24. </Grid.ColumnDefinitions>
  25. <Grid.RowDefinitions>
  26. <RowDefinition
  27. x:Uid="RowDefinition_1"
  28. Height="auto" />
  29. <RowDefinition
  30. x:Uid="RowDefinition_2"
  31. Height="auto" />
  32. <RowDefinition
  33. x:Uid="RowDefinition_3"
  34. Height="auto" />
  35. </Grid.RowDefinitions>
  36. <Label
  37. x:Uid="Label_1"
  38. Content="Background"
  39. Grid.Column="0"
  40. Grid.Row="0" />
  41. <Testharness:ColorPickerCombo
  42. x:Uid="Testharness:ColorPickerCombo_1"
  43. x:Name="cbBackground"
  44. Grid.Column="1"
  45. Grid.Row="0"
  46. SelectedColor="{Binding DialogBackgroundColor, Mode=TwoWay}" />
  47. <Label
  48. x:Uid="Label_2"
  49. Content="Heading"
  50. Grid.Column="0"
  51. Grid.Row="1" />
  52. <Testharness:ColorPickerCombo
  53. x:Uid="Testharness:ColorPickerCombo_2"
  54. x:Name="cbHeading"
  55. Grid.Column="1"
  56. Grid.Row="1"
  57. SelectedColor="{Binding HeaderTextColor, Mode=TwoWay}" />
  58. <Label
  59. x:Uid="Label_3"
  60. Content="Detail Text"
  61. Grid.Column="0"
  62. Grid.Row="2" />
  63. <Testharness:ColorPickerCombo
  64. x:Uid="Testharness:ColorPickerCombo_3"
  65. x:Name="cbDetail"
  66. Grid.Column="1"
  67. Grid.Row="2"
  68. SelectedColor="{Binding DetailsTextColor, Mode=TwoWay}" />
  69. </Grid>
  70. </GroupBox>
  71. <GroupBox
  72. x:Uid="GroupBox_2"
  73. Header="Header Text Font Style">
  74. <Grid
  75. x:Uid="Grid_2">
  76. <Grid.ColumnDefinitions>
  77. <ColumnDefinition
  78. x:Uid="ColumnDefinition_3" />
  79. <ColumnDefinition
  80. x:Uid="ColumnDefinition_4" />
  81. </Grid.ColumnDefinitions>
  82. <Grid.RowDefinitions>
  83. <RowDefinition
  84. x:Uid="RowDefinition_4"
  85. Height="auto" />
  86. <RowDefinition
  87. x:Uid="RowDefinition_5"
  88. Height="auto" />
  89. <RowDefinition
  90. x:Uid="RowDefinition_6"
  91. Height="auto" />
  92. </Grid.RowDefinitions>
  93. <Label
  94. x:Uid="Label_4"
  95. Content="Font Family"
  96. Grid.Column="0"
  97. Grid.Row="0" />
  98. <ComboBox
  99. x:Uid="cbHeaderFontFamily"
  100. x:Name="cbHeaderFontFamily"
  101. Grid.Column="1"
  102. Grid.Row="0"
  103. ItemsSource="{Binding Source={x:Static Fonts.SystemFontFamilies}}"
  104. SelectedValue="{Binding HeaderTextFontFamily,
  105. Mode=TwoWay}" />
  106. <Label
  107. x:Uid="Label_5"
  108. Content="Font Style"
  109. Grid.Column="0"
  110. Grid.Row="1" />
  111. <ComboBox
  112. x:Name="cbHeaderTextFontStyle"
  113. Grid.Row="1"
  114. Grid.Column="1"
  115. Margin="2,0,2,0"
  116. SelectedValue="{Binding HeaderTextFontStyle,
  117. Mode=TwoWay}"
  118. x:Uid="PeriodicTableFontStyleCombo">
  119. <FontStyle
  120. x:Uid="FontStyle_1">Normal</FontStyle>
  121. <FontStyle
  122. x:Uid="FontStyle_2">Italic</FontStyle>
  123. <FontStyle
  124. x:Uid="FontStyle_3">Oblique</FontStyle>
  125. </ComboBox>
  126. <Label
  127. x:Uid="Label_6"
  128. Content="Font Size"
  129. Grid.Column="0"
  130. Grid.Row="2" />
  131. <DockPanel
  132. x:Uid="DockPanel_1" Grid.Column="1"
  133. Grid.Row="2"
  134. LastChildFill="True"
  135. HorizontalAlignment="Right">
  136. <ScrollBar
  137. x:Uid="sbUpDownHeaderFontSize" x:Name="sbUpDownHeaderFontSize"
  138. DockPanel.Dock="Right"
  139. Maximum="50"
  140. Minimum="1"
  141. SmallChange="1"
  142. Orientation="Vertical"
  143. Value="{Binding HeaderTextSize}"/>
  144. <TextBlock
  145. x:Uid="TextBlock_1"
  146. Text="{Binding Path=Value, ElementName=sbUpDownHeaderFontSize, StringFormat={}{0}}"
  147. HorizontalAlignment="Center"
  148. VerticalAlignment="Center" />
  149. </DockPanel>
  150. </Grid>
  151. </GroupBox>
  152. <GroupBox
  153. x:Uid="GroupBox_3"
  154. Header="Detail Text Font Style">
  155. <Grid
  156. x:Uid="Grid_3">
  157. <Grid.ColumnDefinitions>
  158. <ColumnDefinition
  159. x:Uid="ColumnDefinition_5" />
  160. <ColumnDefinition
  161. x:Uid="ColumnDefinition_6" />
  162. </Grid.ColumnDefinitions>
  163. <Grid.RowDefinitions>
  164. <RowDefinition
  165. x:Uid="RowDefinition_7"
  166. Height="auto" />
  167. <RowDefinition
  168. x:Uid="RowDefinition_8"
  169. Height="auto" />
  170. <RowDefinition
  171. x:Uid="RowDefinition_9"
  172. Height="auto" />
  173. </Grid.RowDefinitions>
  174. <Label
  175. x:Uid="Label_7"
  176. Content="Font Family"
  177. Grid.Column="0"
  178. Grid.Row="0" />
  179. <ComboBox
  180. x:Uid="cbDetailFontFamily"
  181. x:Name="cbDetailFontFamily"
  182. Grid.Column="1"
  183. Grid.Row="0"
  184. ItemsSource="{Binding Source={x:Static Fonts.SystemFontFamilies}}"
  185. SelectedValue="{Binding DetailsTextFontFamily,
  186. Mode=TwoWay}" />
  187. <Label
  188. x:Uid="Label_8"
  189. Content="Font Style"
  190. Grid.Column="0"
  191. Grid.Row="1" />
  192. <ComboBox
  193. x:Name="cbDetailTextFontStyle"
  194. Grid.Row="1"
  195. Grid.Column="1"
  196. Margin="2,0,2,0"
  197. SelectedValue="{Binding DetailsTextFontStyle,
  198. Mode=TwoWay}"
  199. x:Uid="cbDetailTextFontStyle">
  200. <FontStyle
  201. x:Uid="FontStyle_4">Normal</FontStyle>
  202. <FontStyle
  203. x:Uid="FontStyle_5">Italic</FontStyle>
  204. <FontStyle
  205. x:Uid="FontStyle_6">Oblique</FontStyle>
  206. </ComboBox>
  207. <Label
  208. x:Uid="Label_9"
  209. Content="Font Size"
  210. Grid.Column="0"
  211. Grid.Row="2" />
  212. <DockPanel
  213. x:Uid="DockPanel_2"
  214. Grid.Column="1"
  215. Grid.Row="2"
  216. LastChildFill="True"
  217. HorizontalAlignment="Right">
  218. <ScrollBar
  219. x:Uid="sbUpDownDetailsFontSize" x:Name="sbUpDownDetailsFontSize"
  220. DockPanel.Dock="Right"
  221. Maximum="50"
  222. Minimum="1"
  223. SmallChange="1"
  224. Orientation="Vertical"
  225. Value="{Binding DetailsTextSize}" />
  226. <TextBlock
  227. x:Uid="TextBlock_2"
  228. Text="{Binding Path=Value, ElementName=sbUpDownDetailsFontSize, StringFormat={}{0}}"
  229. DockPanel.Dock="Right"
  230. HorizontalAlignment="Center"
  231. VerticalAlignment="Center" />
  232. </DockPanel>
  233. </Grid>
  234. </GroupBox>
  235. <Button
  236. x:Uid="Button_1"
  237. Content="Reset"
  238. Click="Reset" />
  239. </StackPanel>
  240. </Window>