<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="BasicControls.DemoTabControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:BasicControls" xmlns:helpers="clr-namespace:Helpers">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/BasicControls.4;component/CommonResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Border>
        <c1:C1TabControl Name="c1Tab" TabItemClose="InEachTab" TabItemClosing="tabs_TabClosing">

            <c1:C1TabItem Header="Sales Per Month" CanUserPin="True">
                <local:SalesPerMonth />
            </c1:C1TabItem>
            <c1:C1TabItem Header="Sales Per Sales Agent">
                <local:SalesPerAgents />
            </c1:C1TabItem>
            <c1:C1TabItem Header="Sales Agents">
                <local:SalesAgents />
            </c1:C1TabItem>
            <c1:C1TabItem Header="Report Summary" CanUserPin="True">
                <local:ReportSummary />
            </c1:C1TabItem>
            <!-- New Tab Item -->
            <c1:C1TabItem IsSelectable="False" CanUserClose="False" PreviewMouseLeftButtonDown="C1TabItem_MouseLeftButtonDown" Header="New">
                <c1:C1TabItem.HeaderTemplate>
                    <DataTemplate>
                        <Grid Width="12" Height="12" Margin="2">
                            <Rectangle Fill="White" Height="10" Width="8" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
                            <Rectangle Stroke="#FF111111" Height="10" Width="8" HorizontalAlignment="Right" VerticalAlignment="Bottom" Opacity="0.5" />
                            <Path Width="7" Height="7" HorizontalAlignment="Left" VerticalAlignment="Top" Data="M3.5,0 C3.77,0 4,0.44 4,1 L4,2.3 L4.9,1.38 C5.3,0.99 5.78,0.83 5.97,1 C6.17,1.2 6,1.7 5.6,2 L4.7,3 L6,3 C6.5,3 7,3.2 7,3.5 C7,3.77 6.55,4 6,4 L4.7,4 L5.6,4.9 C6,5.3 6.17,5.78 5.9,5.97 C5.78,6.17 5.3,6 4.9,5.6 L4,4.7 L4,6 C4,6.5 3.78,7 3.5,7 C3.2,7 3,6.5 3,6 L3,4.7 L2,5.6 C1.7,6 1.2,6.17 1,5.98 C0.83,5.78 0.99,5.3 1.38,4.9 L2.3,4 L1,4 C0.45,4 0,3.78 0,3.5 C0,3.2 0.45,3 1,3 L2.3,3 L1.38,2.08 C0.99,1.7 0.83,1.2 1,1 C1.2,0.83 1.7,0.99 2.1,1.38 L3,2.3 L3,1 C3,0.45 3.2,0 3.5,0 z">
                                <Path.Fill>
                                    <RadialGradientBrush>
                                        <GradientStop Color="#FFFFA800" Offset="0" />
                                        <GradientStop Color="#FFD69200" Offset="1" />
                                    </RadialGradientBrush>
                                </Path.Fill>
                            </Path>
                        </Grid>
                    </DataTemplate>
                </c1:C1TabItem.HeaderTemplate>
            </c1:C1TabItem>

        </c1:C1TabControl>
    </Border>
</UserControl>