ElementComboVisualSettings.xaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <Window
  2. x:Uid="Window_1"
  3. x:Class="OINA.Extender.WPF.Testharness.ElementComboVisualSettings"
  4. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  5. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  6. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  7. xmlns:testharness="clr-namespace:OINA.Extender.WPF.Testharness"
  8. Title="Element Combo Box Visual Settings"
  9. Height="202"
  10. Width="287"
  11. ResizeMode="NoResize"
  12. WindowStyle="ToolWindow">
  13. <Grid
  14. x:Uid="Grid_1">
  15. <GroupBox
  16. x:Uid="GroupBox_1"
  17. Header="Visual Settings">
  18. <Grid
  19. x:Uid="Grid_2">
  20. <Grid.RowDefinitions>
  21. <RowDefinition
  22. x:Uid="RowDefinition_1" />
  23. <RowDefinition
  24. x:Uid="RowDefinition_2" />
  25. <RowDefinition
  26. x:Uid="RowDefinition_3" />
  27. <RowDefinition
  28. x:Uid="RowDefinition_4" />
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition
  32. x:Uid="ColumnDefinition_1"
  33. Width="55*" />
  34. <ColumnDefinition
  35. x:Uid="ColumnDefinition_2"
  36. Width="79*" />
  37. </Grid.ColumnDefinitions>
  38. <Label
  39. x:Uid="Label_1"
  40. Grid.Row="0"
  41. Grid.Column="0"
  42. Content="Background Color"
  43. VerticalContentAlignment="Center" />
  44. <testharness:ColorPickerCombo
  45. Grid.Row="0"
  46. Grid.Column="1"
  47. x:Uid="BackgroundColorCombo"
  48. x:Name="BackgroundColorCombo"
  49. Margin="5"
  50. SelectedColor="{Binding BackgroundColor, Mode=TwoWay}">
  51. </testharness:ColorPickerCombo>
  52. <Label
  53. x:Uid="Label_2"
  54. Grid.Row="1"
  55. Grid.Column="0"
  56. Content="Foreground Color"
  57. VerticalContentAlignment="Center" />
  58. <testharness:ColorPickerCombo
  59. Grid.Row="1"
  60. Grid.Column="1"
  61. x:Uid="ForegroundColorCombo"
  62. x:Name="ForegroundColorCombo"
  63. Margin="5"
  64. SelectedColor="{Binding ForegroundColor, Mode=TwoWay}">
  65. </testharness:ColorPickerCombo>
  66. <Label
  67. x:Uid="Label_3"
  68. Grid.Row="2"
  69. Grid.Column="0"
  70. Content="Font Size"
  71. VerticalContentAlignment="Center" />
  72. <ComboBox
  73. x:Uid="FontSizeCombo"
  74. x:Name="FontSizeCombo"
  75. Grid.Row="2"
  76. Grid.Column="1"
  77. Margin="5"
  78. SelectedValue="{Binding ComboFontSize, Mode=TwoWay}">
  79. <ComboBox.ItemsSource>
  80. <x:Array
  81. x:Uid="x:Array_1"
  82. Type="sys:Double">
  83. <sys:Double
  84. x:Uid="sys:Double_1">6</sys:Double>
  85. <sys:Double
  86. x:Uid="sys:Double_2">8</sys:Double>
  87. <sys:Double
  88. x:Uid="sys:Double_3">10</sys:Double>
  89. <sys:Double
  90. x:Uid="sys:Double_4">12</sys:Double>
  91. <sys:Double
  92. x:Uid="sys:Double_5">14</sys:Double>
  93. <sys:Double
  94. x:Uid="sys:Double_6">16</sys:Double>
  95. </x:Array>
  96. </ComboBox.ItemsSource>
  97. </ComboBox>
  98. <Button
  99. x:Uid="ResetStyleButton"
  100. x:Name="ResetStyleButton"
  101. Content="Reset Style"
  102. Grid.Row="3"
  103. Grid.ColumnSpan="2"
  104. Margin="5"
  105. Click="ResetStyleButton_Click" />
  106. </Grid>
  107. </GroupBox>
  108. </Grid>
  109. </Window>