<Window x:Class="Platform.Controls.ComponentContainer.ColorDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Platform.Controls.ComponentContainer"
        Title="颜色选择器"
        Width="520"
        Height="410"
        Icon="/Platform.Controls;component/Resource/ColorSwatchSquare.png"
        KeyDown="Window_KeyDown"
        WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>


        <local:ColorPicker x:Name="colorPicker" />
        <StackPanel Grid.Row="1"
                    Margin="5"
                    HorizontalAlignment="Right"
                    Orientation="Horizontal">
            <Button x:Name="btnOk"
                    Width="60"
                    Height="25"
                    Margin="10,0,0,0"
                    Click="btnOk_Click"
                    Content="确定" />
            <Button x:Name="btnCancel"
                    Width="60"
                    Height="25"
                    Margin="10,0,10,0"
                    Click="btnCancel_Click"
                    Content="取消" />
        </StackPanel>
    </Grid>
</Window>
