<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="Themes.ThemePicker" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" 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:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:Themes">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!-- header -->
        <Grid Height="60" x:Name="header" VerticalAlignment="Top" Opacity="1">

            <Grid Margin="0,0,0,0" x:Name="headerMain">

                <Path Opacity="0.945" Stretch="Fill" Stroke="#FF00233F" StrokeThickness="1" Data="F1 M5.5000038,0.49999613 L944.5,0.49999613 C947.26141,0.50000387 949.5,2.7385798 949.5,5.5 L949.5,50 949.5,54.5 949.5,59.500004 944.5,59.500004 939.75,59.500004 13.250005,59.500004 5.5000038,59.500004 0.5,59.500004 0.5,54.5 0.5,46.75 0.5,5.5 C0.5,2.7385798 2.7385762,0.50000387 5.5000038,0.49999613 z">
                    <Path.Fill>
                        <LinearGradientBrush EndPoint="0.489,-0.25" StartPoint="0.489,1.133">
                            <GradientStop Color="#FF00275F" Offset="0.288" />
                            <GradientStop Color="#FF2479F4" Offset="1" />
                            <GradientStop Color="#FF0D489D" Offset="0" />
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>

                <Image Stretch="Fill" Source="Resources/headerbg.png" Margin="1,1,1,1" />

                <Rectangle Stroke="#FFACDAFF" StrokeThickness="1" RadiusX="4" RadiusY="4" x:Name="strokeHighlight" Margin="2,2,2,4">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                            <GradientStop Color="#00FFFFFF" Offset="0" />
                            <GradientStop Color="#6BFFFFFF" Offset="1" />
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                    <Rectangle.OpacityMask>
                        <LinearGradientBrush EndPoint="0.511,0.513" StartPoint="0.511,0.052">
                            <GradientStop Color="#FF000000" Offset="0" />
                            <GradientStop Color="#00FFFFFF" Offset="1" />
                        </LinearGradientBrush>
                    </Rectangle.OpacityMask>
                </Rectangle>

            </Grid>

            <Canvas Width="370.001" x:Name="title" HorizontalAlignment="Left" Margin="8,9,0,6.81400012969971">

                <TextBlock x:Name="mnuPortfolios" Width="256" Height="24" FontFamily="Lucida Sans Unicode" FontSize="16" FontWeight="Normal" Foreground="#FFFFFFFF" Text="ComponentOne®" Canvas.Left="1" Canvas.Top="-2" />

                <TextBlock Width="370" Height="30.667" FontSize="24" Foreground="#16FFFFFF" FontWeight="Normal" FontStyle="Normal" FontFamily="Lucida Sans Unicode" RenderTransformOrigin="0.5,0.5" Text="Portfolio Manager" Canvas.Left="0.001" Canvas.Top="29.019">
					<TextBlock.OpacityMask>
						<LinearGradientBrush EndPoint="0.487,0.011" StartPoint="0.488,1.186">
							<GradientStop Color="#00FFFDFD" Offset="0.298" />
							<GradientStop Color="#00FFFFFF" Offset="0.692" />
							<GradientStop Color="#00FFFDFD" Offset="0.327" />
							<GradientStop Color="#FFFEFDFD" Offset="0.33" />
						</LinearGradientBrush>
					</TextBlock.OpacityMask>
					<TextBlock.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="-1" />
							<SkewTransform AngleX="0" AngleY="0" />
							<RotateTransform Angle="0" />
							<TranslateTransform X="0" Y="0" />
						</TransformGroup>
					</TextBlock.RenderTransform>
                </TextBlock>

                <TextBlock Width="370" Height="35.686" FontSize="24" Text="Theme explorer" Foreground="#FFFFF8F8" FontWeight="Normal" FontStyle="Normal" FontFamily="Lucida Sans Unicode" Canvas.Top="12" />
            </Canvas>

            <StackPanel Margin="0 2 10 2" HorizontalAlignment="Right" VerticalAlignment="Center">
                <TextBlock Text="Pick Theme:" Foreground="White" FontWeight="Bold" FontSize="11" />
                <c1:C1ComboBox x:Name="cmbTheme" IsEditable="False" SelectedItemChanged="cmbTheme_SelectedItemChanged" />                
            </StackPanel>

        </Grid>

        <Grid Grid.Row="1" x:Name="galleryContainer">
            <local:Gallery />
        </Grid>

    </Grid>
</UserControl>