| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 | <Window    x:Uid="Window_1"    xmlns:Testharness="clr-namespace:OINA.Extender.WPF.Testharness"    x:Class="OINA.Extender.WPF.Testharness.DetailDialogVisualSettings"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    Title="DetailDialogVisualSettings"    Height="500"    Width="300"    SizeToContent="Height"    DataContext="{Binding RelativeSource={RelativeSource Self}}">    <StackPanel        x:Uid="StackPanel_1">        <GroupBox            x:Uid="GroupBox_1"            Header="Dialog Color Settings">            <Grid                x:Uid="Grid_1">                <Grid.ColumnDefinitions>                    <ColumnDefinition                        x:Uid="ColumnDefinition_1" />                    <ColumnDefinition                        x:Uid="ColumnDefinition_2" />                </Grid.ColumnDefinitions>                <Grid.RowDefinitions>                    <RowDefinition                        x:Uid="RowDefinition_1"                        Height="auto" />                    <RowDefinition                        x:Uid="RowDefinition_2"                        Height="auto" />                    <RowDefinition                        x:Uid="RowDefinition_3"                        Height="auto" />                </Grid.RowDefinitions>                <Label                    x:Uid="Label_1"                    Content="Background"                    Grid.Column="0"                    Grid.Row="0" />                <Testharness:ColorPickerCombo                    x:Uid="Testharness:ColorPickerCombo_1"                    x:Name="cbBackground"                    Grid.Column="1"                    Grid.Row="0"                    SelectedColor="{Binding DialogBackgroundColor, Mode=TwoWay}" />                <Label                    x:Uid="Label_2"                    Content="Heading"                    Grid.Column="0"                    Grid.Row="1" />                <Testharness:ColorPickerCombo                    x:Uid="Testharness:ColorPickerCombo_2"                    x:Name="cbHeading"                    Grid.Column="1"                    Grid.Row="1"                    SelectedColor="{Binding HeaderTextColor, Mode=TwoWay}" />                <Label                    x:Uid="Label_3"                    Content="Detail Text"                    Grid.Column="0"                    Grid.Row="2" />                <Testharness:ColorPickerCombo                    x:Uid="Testharness:ColorPickerCombo_3"                    x:Name="cbDetail"                    Grid.Column="1"                    Grid.Row="2"                    SelectedColor="{Binding DetailsTextColor, Mode=TwoWay}" />            </Grid>        </GroupBox>        <GroupBox            x:Uid="GroupBox_2"            Header="Header Text Font Style">            <Grid                x:Uid="Grid_2">                <Grid.ColumnDefinitions>                    <ColumnDefinition                        x:Uid="ColumnDefinition_3" />                    <ColumnDefinition                        x:Uid="ColumnDefinition_4" />                </Grid.ColumnDefinitions>                <Grid.RowDefinitions>                    <RowDefinition                        x:Uid="RowDefinition_4"                        Height="auto" />                    <RowDefinition                        x:Uid="RowDefinition_5"                        Height="auto" />                    <RowDefinition                        x:Uid="RowDefinition_6"                        Height="auto" />                </Grid.RowDefinitions>                <Label                    x:Uid="Label_4"                    Content="Font Family"                    Grid.Column="0"                    Grid.Row="0" />                <ComboBox                    x:Uid="cbHeaderFontFamily"                    x:Name="cbHeaderFontFamily"                    Grid.Column="1"                    Grid.Row="0"                    ItemsSource="{Binding Source={x:Static Fonts.SystemFontFamilies}}"                    SelectedValue="{Binding HeaderTextFontFamily,                                                          Mode=TwoWay}" />                <Label                    x:Uid="Label_5"                    Content="Font Style"                    Grid.Column="0"                    Grid.Row="1" />                <ComboBox                    x:Name="cbHeaderTextFontStyle"                    Grid.Row="1"                    Grid.Column="1"                    Margin="2,0,2,0"                    SelectedValue="{Binding HeaderTextFontStyle,                                                          Mode=TwoWay}"                    x:Uid="PeriodicTableFontStyleCombo">                    <FontStyle                        x:Uid="FontStyle_1">Normal</FontStyle>                    <FontStyle                        x:Uid="FontStyle_2">Italic</FontStyle>                    <FontStyle                        x:Uid="FontStyle_3">Oblique</FontStyle>                </ComboBox>                <Label                    x:Uid="Label_6"                    Content="Font Size"                    Grid.Column="0"                    Grid.Row="2" />                <DockPanel                    x:Uid="DockPanel_1" Grid.Column="1"                    Grid.Row="2"                    LastChildFill="True"                    HorizontalAlignment="Right">                    <ScrollBar                        x:Uid="sbUpDownHeaderFontSize" x:Name="sbUpDownHeaderFontSize"                        DockPanel.Dock="Right"                        Maximum="50"                        Minimum="1"                        SmallChange="1"                        Orientation="Vertical"                        Value="{Binding HeaderTextSize}"/>                    <TextBlock                        x:Uid="TextBlock_1"                        Text="{Binding Path=Value, ElementName=sbUpDownHeaderFontSize, StringFormat={}{0}}"                        HorizontalAlignment="Center"                        VerticalAlignment="Center" />                </DockPanel>            </Grid>        </GroupBox>        <GroupBox            x:Uid="GroupBox_3"            Header="Detail Text Font Style">            <Grid                x:Uid="Grid_3">                <Grid.ColumnDefinitions>                    <ColumnDefinition                        x:Uid="ColumnDefinition_5" />                    <ColumnDefinition                        x:Uid="ColumnDefinition_6" />                </Grid.ColumnDefinitions>                <Grid.RowDefinitions>                    <RowDefinition                        x:Uid="RowDefinition_7"                        Height="auto" />                    <RowDefinition                        x:Uid="RowDefinition_8"                        Height="auto" />                    <RowDefinition                        x:Uid="RowDefinition_9"                        Height="auto" />                </Grid.RowDefinitions>                <Label                    x:Uid="Label_7"                    Content="Font Family"                    Grid.Column="0"                    Grid.Row="0" />                <ComboBox                    x:Uid="cbDetailFontFamily"                    x:Name="cbDetailFontFamily"                    Grid.Column="1"                    Grid.Row="0"                    ItemsSource="{Binding Source={x:Static Fonts.SystemFontFamilies}}"                    SelectedValue="{Binding DetailsTextFontFamily,                                                          Mode=TwoWay}" />                <Label                    x:Uid="Label_8"                    Content="Font Style"                    Grid.Column="0"                    Grid.Row="1" />                <ComboBox                    x:Name="cbDetailTextFontStyle"                    Grid.Row="1"                    Grid.Column="1"                    Margin="2,0,2,0"                    SelectedValue="{Binding DetailsTextFontStyle,                                                          Mode=TwoWay}"                    x:Uid="cbDetailTextFontStyle">                    <FontStyle                        x:Uid="FontStyle_4">Normal</FontStyle>                    <FontStyle                        x:Uid="FontStyle_5">Italic</FontStyle>                    <FontStyle                        x:Uid="FontStyle_6">Oblique</FontStyle>                </ComboBox>                <Label                    x:Uid="Label_9"                    Content="Font Size"                    Grid.Column="0"                    Grid.Row="2" />                <DockPanel                    x:Uid="DockPanel_2"                    Grid.Column="1"                    Grid.Row="2"                    LastChildFill="True"                    HorizontalAlignment="Right">                    <ScrollBar                        x:Uid="sbUpDownDetailsFontSize" x:Name="sbUpDownDetailsFontSize"                        DockPanel.Dock="Right"                        Maximum="50"                        Minimum="1"                        SmallChange="1"                        Orientation="Vertical"                        Value="{Binding DetailsTextSize}" />                    <TextBlock                        x:Uid="TextBlock_2"                        Text="{Binding Path=Value, ElementName=sbUpDownDetailsFontSize, StringFormat={}{0}}"                        DockPanel.Dock="Right"                        HorizontalAlignment="Center"                        VerticalAlignment="Center" />                </DockPanel>            </Grid>        </GroupBox>        <Button            x:Uid="Button_1"            Content="Reset"            Click="Reset" />    </StackPanel></Window>
 |