<UserControl x:Class="Q3.SL.Demos.Demos.ColorEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:vms="clr-namespace:Q3.SL.Demos.ViewModels"
             xmlns:exclasses="clr-namespace:Q3.SL.Demos.ExClasses"
             mc:Ignorable="d"
             d:DesignHeight="600"
             d:DesignWidth="800">
    <UserControl.Resources>
        <exclasses:ColorToBrushConverter x:Key="xColorConverter" />
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot"
          Background="White">
        <Border HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Width="700"
                Height="400"
                Background="{StaticResource MainBrush}"
                BorderThickness="1"
                BorderBrush="{StaticResource BasicBrush}">
            <Border.Effect>
                <DropShadowEffect BlurRadius="5"
                                  Color="Black"
                                  ShadowDepth="5"
                                  Opacity=".5" />
            </Border.Effect>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="60" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock Text="Colorize-It!™ "
                           Style="{StaticResource zTitleBlockStyle}" />
                <telerik:RadColorEditor x:Name="xColorEditor"
                                        Grid.Row="1" />
                <Border Grid.Row="1"
                        Grid.Column="1"
                        Margin="5"
                        Background="{Binding ElementName=xColorEditor, Path=SelectedColor, Converter={StaticResource xColorConverter}}" />
                <telerik:RadColorPaletteView Grid.Row="1"
                                             Palette="Metro"
                                             HorizontalAlignment="Center"
                                             VerticalAlignment="Center"
                                             Grid.Column="1" />
            </Grid>
        </Border>
    </Grid>
</UserControl>
