<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="Localization.MainPage" 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:common="clr-namespace:SamplesCommon;assembly=SamplesCommon.5">

    <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="Images/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="Built-in Localization" 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 Language:" Foreground="White" FontWeight="Bold" FontSize="11" />
                <common:LocalizationComboBox Margin="0 2 0 0" Width="200" Height="25" />
            </StackPanel>

        </Grid>
        
        
        <c1:C1TabControl x:Name="tabControl" TabStripPlacement="Bottom" TabStripBackground="#FFF0F0F0" BorderBrush="LightGray" SelectedBackground="White" Background="White" Margin="15" SelectionChanged="C1TabControl_SelectionChanged" Grid.Row="1">
            <c1:C1TabControl.ItemContainerStyle>
                <Style TargetType="c1:C1TabItem">
                    <Setter Property="Padding" Value="5" />
                </Style>
            </c1:C1TabControl.ItemContainerStyle>
            <c1:C1TabItem Header="C1RichTextBox">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <c1:C1RichTextBoxToolbar RichTextBox="{Binding ElementName=rtb}" />
                    <c1:C1RichTextBox x:Name="rtb" Grid.Row="1" />
                </Grid>
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1DataGrid">
                <c1:C1DataGrid x:Name="dataGrid" />
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1FlexGrid">
                <c1:C1FlexGrid x:Name="flexGrid">
                    <c1:C1FlexGridFilterService.FlexGridFilter>
                        <c1:C1FlexGridFilter />
                    </c1:C1FlexGridFilterService.FlexGridFilter>
                </c1:C1FlexGrid>            
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1MediaPlayer">
                <c1:C1MediaPlayer x:Name="mediaPlayer" AutoPlay="False">
                    <c1:C1MediaItem MediaSource="http://video.ted.com/talks/podcast/HansRosling_2006.mp4" Title="Hans Rosling shows the best stats you've ever seen">
                        <c1:C1MediaChapter Title="Global life expectancies" Position="00:00:25" />
                        <c1:C1MediaChapter Title="World wealth" Position="00:06:18" />
                        <c1:C1MediaChapter Title="GDP and child death" Position="00:09:16" />
                        <c1:C1MediaChapter Title="How can we use this data?" Position="00:15:04" />
                    </c1:C1MediaItem>
                </c1:C1MediaPlayer>
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1PdfViewer">
                <c1:C1PdfViewer x:Name="reportViewer" />
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1ReportViewer">
                <c1:C1ReportViewer x:Name="pdfViewer" />
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1Scheduler">
                <c1:C1Scheduler x:Name="sched" GroupBy="Owner" />
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1Docking">
                <c1:C1DockControl>
                    <c1:C1DockTabControl Dock="Left">
                        <c1:C1DockTabItem Background="Red" Header="Red Item" />
                    </c1:C1DockTabControl>
                    <c1:C1DockTabControl Dock="Right">
                        <c1:C1DockTabItem Background="Yellow" Header="Yellow Item" />
                    </c1:C1DockTabControl>
                    <c1:C1DockTabControl Dock="Bottom">
                        <c1:C1DockTabItem Background="Green" Header="Green Item" />
                    </c1:C1DockTabControl>
                    <c1:C1DockTabControl>
                        <c1:C1DockTabItem Background="Blue" Header="Blue Item">
                            
                        </c1:C1DockTabItem>
                    </c1:C1DockTabControl>
                </c1:C1DockControl>
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1ColorPicker">
                <c1:C1ColorPicker VerticalAlignment="Center" HorizontalAlignment="Center" Width="80" />
            </c1:C1TabItem>

            <c1:C1TabItem Header="C1MessageBox">
                <c1:C1SplitButton x:Name="btnOpenMsgBox" VerticalAlignment="Center" HorizontalAlignment="Center" Header="Open C1MessageBox..." Click="btnOpenMsgBox_Click">
                    <c1:C1MenuList x:Name="listMsgBoxOptions" ItemClick="listMsgBoxOptions_ItemClick" />
                </c1:C1SplitButton>
            </c1:C1TabItem>
            <c1:C1TabItem Header="C1Olap">
                <c1:C1OlapPage x:Name="olap" />
            </c1:C1TabItem>
        </c1:C1TabControl>

    </Grid>
</UserControl>