<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ChartExtended.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:samples="clr-namespace:ChartExtended.Samples" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib">
  <UserControl.Resources> 
    <Style x:Key="bdrStyle" TargetType="Border">
      <Setter Property="Background" Value="#FFF0F0F0" />
      <Setter Property="Padding" Value="4" />
      <Setter Property="Margin" Value="2" />
      <Setter Property="BorderBrush" Value="LightGray" />
      <Setter Property="BorderThickness" Value="1" />
      <Setter Property="CornerRadius" Value="3" />
    </Style>
  	<Color x:Key="ForegroundColor">Black</Color>
  	<SolidColorBrush x:Key="ForegroundBrushColor" Color="{StaticResource ForegroundColor}" />
  	<Color x:Key="MainColor">#FF3C688D</Color>
  	<SolidColorBrush x:Key="MainBrushColor" Color="{StaticResource MainColor}" />
  	<LinearGradientBrush x:Key="BorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
  		<GradientStop Color="#FFA3AEB9" Offset="0" />
  		<GradientStop Color="#FF8399A9" Offset="0.375" />
  		<GradientStop Color="#FF718597" Offset="0.375" />
  		<GradientStop Color="#FF617584" Offset="1" />
  	</LinearGradientBrush>
  	<Thickness x:Key="GeneralThickness">1</Thickness>
  	<Style x:Key="MenuFirstLevelOver" TargetType="Border">
  		<Setter Property="Background">
  			<Setter.Value>
  				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  					<GradientStop Color="#FFEEF7FA" Offset="0" />
  					<GradientStop Color="#FFD5EAF2" Offset="0.8" />
  					<GradientStop Color="#FFC8E4ED" Offset="1" />
  				</LinearGradientBrush>
  			</Setter.Value>
  		</Setter>
  		<Setter Property="BorderBrush">
  			<Setter.Value>
  				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  					<GradientStop Color="#FF3F6A8E" />
  					<GradientStop Color="#FF3F6A8E" Offset="1" />
  				</LinearGradientBrush>
  			</Setter.Value>
  		</Setter>
  		<Setter Property="BorderThickness" Value="{StaticResource GeneralThickness}" />
  	</Style>
  	<Style x:Key="DockTabItemButton" TargetType="Button">
  		<Setter Property="Background" Value="{StaticResource MainBrushColor}" />
  		<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
  		<Setter Property="BorderThickness" Value="{StaticResource GeneralThickness}" />
  		<Setter Property="Width" Value="15" />
  		<Setter Property="Height" Value="15" />
  		<Setter Property="Padding" Value="0" />
  		<Setter Property="Template">
  			<Setter.Value>
  				<ControlTemplate TargetType="Button">
  					<Grid Background="Transparent">
  						<VisualStateManager.VisualStateGroups>
  							<VisualStateGroup x:Name="CommonStates">
  								<VisualState x:Name="Normal" />
  								<VisualState x:Name="MouseOver">
  									<Storyboard>
  										<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="MouseOverElement" Storyboard.TargetProperty="(UIElement.Visibility)">
  											<DiscreteObjectKeyFrame KeyTime="0">
  												<DiscreteObjectKeyFrame.Value>
  													<Visibility>Visible</Visibility>
  												</DiscreteObjectKeyFrame.Value>
  											</DiscreteObjectKeyFrame>
  										</ObjectAnimationUsingKeyFrames>
  									</Storyboard>
  								</VisualState>
  								<VisualState x:Name="Pressed">
  									<Storyboard>
  										<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="MouseOverElement" Storyboard.TargetProperty="(UIElement.Visibility)">
  											<DiscreteObjectKeyFrame KeyTime="0">
  												<DiscreteObjectKeyFrame.Value>
  													<Visibility>Visible</Visibility>
  												</DiscreteObjectKeyFrame.Value>
  											</DiscreteObjectKeyFrame>
  										</ObjectAnimationUsingKeyFrames>
  									</Storyboard>
  								</VisualState>
  								<VisualState x:Name="Disabled" />
  							</VisualStateGroup>
  							<VisualStateGroup x:Name="FocusStates">
  								<VisualState x:Name="Focused" />
  								<VisualState x:Name="Unfocused" />
  							</VisualStateGroup>
  						</VisualStateManager.VisualStateGroups>
  						<Border x:Name="MouseOverElement" Style="{StaticResource MenuFirstLevelOver}" Visibility="Collapsed" BorderThickness="{TemplateBinding BorderThickness}" />
  						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" VerticalAlignment="Center" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
  					</Grid>
  				</ControlTemplate>
  			</Setter.Value>
  		</Setter>
  	</Style>
  	<Color x:Key="ArrowColor">#FF111111</Color>
  	<SolidColorBrush x:Key="ArrowBrushColor" Color="{StaticResource ArrowColor}" />
  	<c1:C1_Silverlight x:Key="Resources" />
  	<SolidColorBrush x:Key="DisabledBrush" Color="#B2FFFFFF" />
  	<Style x:Key="DisabledStyle" TargetType="Border">
  		<Setter Property="Background" Value="{StaticResource DisabledBrush}" />
  		<Setter Property="BorderThickness" Value="0" />
  		<Setter Property="Opacity" Value="0" />
  		<Setter Property="IsHitTestVisible" Value="False" />
  		<Setter Property="CornerRadius" Value="2" />
  	</Style>
  </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot">
    	<c1:C1TabControl x:Name="tc" TabItemShape="Rounded" Padding="3" SelectionChanged="TabControl_SelectionChanged">
    		<c1:C1TabControl.ItemContainerStyle>
    			<Style TargetType="c1:C1TabItem">
    				<Setter Property="Padding" Value="5" />
    			</Style>
    		</c1:C1TabControl.ItemContainerStyle>
    		<c1:C1TabItem Header="Functions" BorderThickness="1">
    			<samples:Functions />
    		</c1:C1TabItem>
    		<c1:C1TabItem Header="Parametric">
    			<samples:Parametric />
    		</c1:C1TabItem>
    		<c1:C1TabItem Header="Trendlines">
    			<samples:TrendLines />
    		</c1:C1TabItem>
    		<c1:C1TabItem Header="Moving Average">
    			<samples:MovAverage />
    		</c1:C1TabItem>
      <c1:C1TabItem Header="Image Export">
        <samples:ImageExport />
      </c1:C1TabItem>
    		<c1:C1TabItem x:Name="dyntc" Header="Live">
    			<samples:Dynamic x:Name="dyn" />
    		</c1:C1TabItem>
    	</c1:C1TabControl>
  </Grid>
</UserControl>