<?xml version="1.0" encoding="utf-8"?>
<c1:C1TabControl x:Class="C1_Demo.DemoNewTab" CanUserReorder="False" mc:Ignorable="d" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:demo="clr-namespace:C1_Demo" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:System_Windows_Controls_Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <c1:C1TabControl.Resources>
        <!-- Month Styles -->
        <Style x:Key="TitleDayStyle" TargetType="TextBlock">
		<Setter Property="Foreground" Value="#FF10657A" />
		<Setter Property="FontSize" Value="14" />
		<Setter Property="FontWeight" Value="Bold" />
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="VerticalAlignment" Value="Center" />
		<Setter Property="Margin" Value="5" />
		<Setter Property="FontFamily" Value="Times New Roman" />
	</Style>
	<Style x:Key="TitleDayBkgStyle" TargetType="Border">
		<Setter Property="Background">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFB3C5D4" Offset="0.3" />
					<GradientStop Color="#FFBCCDDC" Offset="0" />
					<GradientStop Color="#FF93B0CB" Offset="0.7" />
					<GradientStop Color="#FFA8B8C6" Offset="1" />
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="BorderThickness" Value="0,0,0,2" />
		<Setter Property="BorderBrush" Value="#FF6587A7" />
	</Style>	
	<Style x:Key="CalendarItemStyle" TargetType="System_Windows_Controls_Primitives:CalendarItem">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="System_Windows_Controls_Primitives:CalendarItem">
						<Grid>
							<Grid.Resources>
								<SolidColorBrush x:Key="DisabledBrush" Color="#8CFFFFFF" />
							</Grid.Resources>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal" />
									<VisualState x:Name="Disabled">
										<Storyboard>
											<DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity" To="1" />
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border>
									<Grid>
										<Grid.Resources>
											<ControlTemplate x:Key="HeaderButtonTemplate" TargetType="Button">
												<Grid Cursor="Hand">
													<VisualStateManager.VisualStateGroups>
														<VisualStateGroup x:Name="CommonStates">
															<VisualState x:Name="Normal" />
															<VisualState x:Name="MouseOver">
																<Storyboard>
																	<ColorAnimation Duration="0" Storyboard.TargetName="ContentBrush" Storyboard.TargetProperty="Color" To="#FF73A9D8" />
																</Storyboard>
															</VisualState>
															<VisualState x:Name="Disabled">
																<Storyboard>
																	<DoubleAnimation Duration="0" Storyboard.TargetName="Content" Storyboard.TargetProperty="Opacity" To=".5" />
																</Storyboard>
															</VisualState>
														</VisualStateGroup>
													</VisualStateManager.VisualStateGroups>
													<ContentControl x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" FontFamily="Trebuchet MS" FontSize="24" Margin="15,0,1,0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" IsTabStop="False" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}">
														<ContentControl.Foreground>
															<SolidColorBrush x:Name="ContentBrush" Color="#FF507494" />
														</ContentControl.Foreground>
													</ContentControl>
												</Grid>
											</ControlTemplate>
											<DataTemplate x:Name="DayTitleTemplate">
												<Border Style="{StaticResource TitleDayBkgStyle}">
													<TextBlock Text="{Binding}" Style="{StaticResource TitleDayStyle}" />
												</Border>
											</DataTemplate>
											<ControlTemplate x:Key="PreviousButtonTemplate" TargetType="Button">
												<Grid Cursor="Hand">
													<VisualStateManager.VisualStateGroups>
														<VisualStateGroup x:Name="CommonStates">
															<VisualState x:Name="Normal" />
															<VisualState x:Name="MouseOver">
																<Storyboard>
																	<ColorAnimation Duration="0" Storyboard.TargetName="IconBrush" Storyboard.TargetProperty="Color" To="#FF73A9D8" />
																</Storyboard>
															</VisualState>
															<VisualState x:Name="Disabled">
																<Storyboard>
																	<DoubleAnimation Duration="0" Storyboard.TargetName="IconBrush" Storyboard.TargetProperty="Opacity" To=".5" />
																</Storyboard>
															</VisualState>
														</VisualStateGroup>
													</VisualStateManager.VisualStateGroups>
													<Rectangle Fill="#11E5EBF1" Stretch="Fill" Opacity="1" />
													<Grid>
														<Path Stretch="Fill" Height="10" HorizontalAlignment="Left" Margin="14,-6,0,0" VerticalAlignment="Center" Width="6" Data="M288.75,232.25 L288.75,240.625 L283,236.625 z">
															<Path.Fill>
																<SolidColorBrush x:Name="IconBrush" Color="#FF333333" />
															</Path.Fill>
														</Path>
													</Grid>
												</Grid>
											</ControlTemplate>
											<ControlTemplate x:Key="NextButtonTemplate" TargetType="Button">
												<Grid Cursor="Hand">
													<VisualStateManager.VisualStateGroups>
														<VisualStateGroup x:Name="CommonStates">
															<VisualState x:Name="Normal" />
															<VisualState x:Name="MouseOver">
																<Storyboard>
																	<ColorAnimation Duration="0" Storyboard.TargetName="IconBrush" Storyboard.TargetProperty="Color" To="#FF73A9D8" />
																</Storyboard>
															</VisualState>
															<VisualState x:Name="Disabled">
																<Storyboard>
																	<DoubleAnimation Duration="0" Storyboard.TargetName="IconBrush" Storyboard.TargetProperty="Opacity" To=".5" />
																</Storyboard>
															</VisualState>
														</VisualStateGroup>
													</VisualStateManager.VisualStateGroups>
												</Grid>
											</ControlTemplate>
										</Grid.Resources>
										<Grid Margin="12,65,12,12" Background="White">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="0.144*" />
												<ColumnDefinition Width="0.144*" />
												<ColumnDefinition Width="0.142*" />
												<ColumnDefinition Width="0.144*" />
												<ColumnDefinition Width="0.142*" />
												<ColumnDefinition Width="0.144*" />
												<ColumnDefinition Width="0.142*" />
											</Grid.ColumnDefinitions>
											<Grid.RowDefinitions>
												<RowDefinition Height="30" />
												<RowDefinition Height="0.139*" />
												<RowDefinition Height="0.139*" />
												<RowDefinition Height="0.139*" />
												<RowDefinition Height="0.139*" />
												<RowDefinition Height="0.144*" />
												<RowDefinition Height="0.139*" />
											</Grid.RowDefinitions>
											<Rectangle Fill="#FFE2E2E2" Grid.Row="1" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="1" Grid.Row="1" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="2" Grid.Row="1" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="3" Grid.Row="1" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="4" Grid.Row="1" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="5" Grid.Row="1" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="6" Grid.Row="1" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Row="2" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="1" Grid.Row="2" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="2" Grid.Row="2" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="3" Grid.Row="2" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="4" Grid.Row="2" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="5" Grid.Row="2" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="6" Grid.Row="2" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="6" Grid.Row="3" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="5" Grid.Row="3" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="4" Grid.Row="3" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="3" Grid.Row="3" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="2" Grid.Row="3" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="1" Grid.Row="3" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Row="3" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Row="4" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="1" Grid.Row="4" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="2" Grid.Row="4" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="3" Grid.Row="4" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="4" Grid.Row="4" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="5" Grid.Row="4" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="6" Grid.Row="4" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="6" Grid.Row="5" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="5" Grid.Row="5" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="4" Grid.Row="5" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="3" Grid.Row="5" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="2" Grid.Row="5" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="1" Grid.Row="5" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Row="5" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Row="6" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="1" Grid.Row="6" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="2" Grid.Row="6" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="3" Grid.Row="6" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="4" Grid.Row="6" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="5" Grid.Row="6" Margin="1" />
											<Rectangle Fill="#FFE2E2E2" Grid.Column="6" Grid.Row="6" Margin="1" />
										</Grid>
										<Border HorizontalAlignment="Center" Margin="10,63,10,10" VerticalAlignment="Center" BorderBrush="#FF6587A7" BorderThickness="2" d:IsLocked="True">
											<Grid x:Name="MonthView" d:IsLocked="True">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="0.144*" />
													<ColumnDefinition Width="0.144*" />
													<ColumnDefinition Width="0.142*" />
													<ColumnDefinition Width="0.144*" />
													<ColumnDefinition Width="0.142*" />
													<ColumnDefinition Width="0.144*" />
													<ColumnDefinition Width="0.142*" />
												</Grid.ColumnDefinitions>
												<Grid.RowDefinitions>
													<RowDefinition Height="30" />
													<RowDefinition Height="0.139*" />
													<RowDefinition Height="0.139*" />
													<RowDefinition Height="0.139*" />
													<RowDefinition Height="0.139*" />
													<RowDefinition Height="0.144*" />
													<RowDefinition Height="0.139*" />
												</Grid.RowDefinitions>
											</Grid>
										</Border>
										<Grid x:Name="YearView" Margin="6,-3,7,6" Visibility="Collapsed" Grid.ColumnSpan="3" Grid.Row="1" d:IsLocked="True">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="Auto" />
											</Grid.ColumnDefinitions>
											<Grid.RowDefinitions>
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
											</Grid.RowDefinitions>
										</Grid>
										<Border BorderBrush="#FFCBD2DB" BorderThickness="0,0,0,3" VerticalAlignment="Top" d:IsLocked="True">
											<Border.Background>
												<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
													<GradientStop Color="#FFE9ECF0" Offset="0" />
								        				<GradientStop Color="#FFDDE1E7" Offset="0.2" />
								        				<GradientStop Color="#FFCCD3DC" Offset="0.2" />
								        				<GradientStop Color="#FFFAFAFB" Offset="0.647" />
												</LinearGradientBrush>
											</Border.Background>
											<Button x:Name="HeaderButton" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="32" Template="{StaticResource HeaderButtonTemplate}" Grid.Column="1" FontFamily="Times New Roman" Foreground="White" Height="50" />
										</Border>
									</Grid>
							</Border>
							<Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBrush}" Stretch="Fill" Stroke="{StaticResource DisabledBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="0,2,0,2" Opacity="0" Visibility="Collapsed" />
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="MonthCalendarStyle" TargetType="controls:Calendar">
			<Setter Property="IsTabStop" Value="False" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="controls:Calendar">
						<Grid x:Name="Root">
							<System_Windows_Controls_Primitives:CalendarItem x:Name="CalendarItem" Style="{StaticResource CalendarItemStyle}" />
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
    </c1:C1TabControl.Resources>
    <!-- New Tab Item -->
    <c1:C1TabItem IsSelectable="False" CanUserClose="False" MouseLeftButtonDown="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>