123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <Window
- x:Uid="Window_1"
- x:Class="OINA.Extender.WPF.Testharness.ElementComboVisualSettings"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:testharness="clr-namespace:OINA.Extender.WPF.Testharness"
- Title="Element Combo Box Visual Settings"
- Height="202"
- Width="287"
- ResizeMode="NoResize"
- WindowStyle="ToolWindow">
- <Grid
- x:Uid="Grid_1">
- <GroupBox
- x:Uid="GroupBox_1"
- Header="Visual Settings">
- <Grid
- x:Uid="Grid_2">
- <Grid.RowDefinitions>
- <RowDefinition
- x:Uid="RowDefinition_1" />
- <RowDefinition
- x:Uid="RowDefinition_2" />
- <RowDefinition
- x:Uid="RowDefinition_3" />
- <RowDefinition
- x:Uid="RowDefinition_4" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- x:Uid="ColumnDefinition_1"
- Width="55*" />
- <ColumnDefinition
- x:Uid="ColumnDefinition_2"
- Width="79*" />
- </Grid.ColumnDefinitions>
- <Label
- x:Uid="Label_1"
- Grid.Row="0"
- Grid.Column="0"
- Content="Background Color"
- VerticalContentAlignment="Center" />
- <testharness:ColorPickerCombo
- Grid.Row="0"
- Grid.Column="1"
- x:Uid="BackgroundColorCombo"
- x:Name="BackgroundColorCombo"
- Margin="5"
- SelectedColor="{Binding BackgroundColor, Mode=TwoWay}">
- </testharness:ColorPickerCombo>
- <Label
- x:Uid="Label_2"
- Grid.Row="1"
- Grid.Column="0"
- Content="Foreground Color"
- VerticalContentAlignment="Center" />
- <testharness:ColorPickerCombo
- Grid.Row="1"
- Grid.Column="1"
- x:Uid="ForegroundColorCombo"
- x:Name="ForegroundColorCombo"
- Margin="5"
- SelectedColor="{Binding ForegroundColor, Mode=TwoWay}">
- </testharness:ColorPickerCombo>
- <Label
- x:Uid="Label_3"
- Grid.Row="2"
- Grid.Column="0"
- Content="Font Size"
- VerticalContentAlignment="Center" />
- <ComboBox
- x:Uid="FontSizeCombo"
- x:Name="FontSizeCombo"
- Grid.Row="2"
- Grid.Column="1"
- Margin="5"
- SelectedValue="{Binding ComboFontSize, Mode=TwoWay}">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_1"
- Type="sys:Double">
- <sys:Double
- x:Uid="sys:Double_1">6</sys:Double>
- <sys:Double
- x:Uid="sys:Double_2">8</sys:Double>
- <sys:Double
- x:Uid="sys:Double_3">10</sys:Double>
- <sys:Double
- x:Uid="sys:Double_4">12</sys:Double>
- <sys:Double
- x:Uid="sys:Double_5">14</sys:Double>
- <sys:Double
- x:Uid="sys:Double_6">16</sys:Double>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Button
- x:Uid="ResetStyleButton"
- x:Name="ResetStyleButton"
- Content="Reset Style"
- Grid.Row="3"
- Grid.ColumnSpan="2"
- Margin="5"
- Click="ResetStyleButton_Click" />
- </Grid>
- </GroupBox>
- </Grid>
- </Window>
|