<?xml version="1.0" encoding="utf-8"?>
<Application x:Class="StockPortfolio.App" mc:Ignorable="d" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:System_Windows_Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:StockPortfolio="clr-namespace:StockPortfolio">
    <Application.Resources>

        <SolidColorBrush x:Key="DisabledBrush" Color="#A5FFFFFF" />
        <Style x:Key="DisabledStyle" TargetType="Rectangle">
            <Setter Property="RadiusX" Value="1" />
            <Setter Property="RadiusY" Value="1" />
            <Setter Property="Opacity" Value="0" />
            <Setter Property="IsHitTestVisible" Value="False" />
            <Setter Property="StrokeThickness" Value="0" />
            <Setter Property="Stroke" Value="{StaticResource DisabledBrush}" />
            <Setter Property="Fill" Value="{StaticResource DisabledBrush}" />
        </Style>

        <SolidColorBrush x:Key="WatermarkBrush" Color="#FFAAAAAA" />

        <Style x:Key="PageBarButtonStyle" TargetType="Button">
            <Setter Property="IsEnabled" Value="true" />
            <Setter Property="IsTabStop" Value="true" />
            <Setter Property="Background" Value="#FF003255" />
            <Setter Property="Foreground" Value="#FF313131" />
            <Setter Property="MinWidth" Value="5" />
            <Setter Property="MinHeight" Value="5" />
            <Setter Property="Margin" Value="0" />
            <Setter Property="HorizontalContentAlignment" Value="Center" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="Cursor" Value="Arrow" />
            <Setter Property="FontSize" Value="11" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Canvas Width="10" Height="70" x:Name="canvas" RenderTransformOrigin="0.5,0.5">
                            <Canvas.Resources>
                                <SolidColorBrush x:Key="BorderBrush" Color="#FF000000" />
                                <SolidColorBrush x:Key="AccentBrush" Color="#FFFFFFFF" />
                                <SolidColorBrush x:Key="DisabledBrush" Color="#A5FFFFFF" />
                                <LinearGradientBrush x:Key="FocusedStrokeBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#B2FFFFFF" Offset="0" />
                                    <GradientStop Color="#51FFFFFF" Offset="1" />
                                    <GradientStop Color="#66FFFFFF" Offset="0.325" />
                                    <GradientStop Color="#1EFFFFFF" Offset="0.325" />
                                </LinearGradientBrush>
                            </Canvas.Resources>
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="0:0:0.2" To="MouseOver" />
                                        <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Normal" />
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.2" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="canvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.2" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF00275F" />
                                            </ColorAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF0D489D" />
                                            </ColorAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF2479F4" />
                                            </ColorAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="canvas">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="canvas">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF0D489D" />
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF001078" />
                                            </ColorAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF00275F" />
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF001078" />
                                            </ColorAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF2479F4" />
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF0098EE" />
                                            </ColorAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.99" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.745" />
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.9" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard />
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused">
                                        <Storyboard />
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>

                            <Canvas.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1" />
                                    <SkewTransform AngleX="0" AngleY="0" />
                                    <RotateTransform Angle="0" />
                                    <TranslateTransform X="0" Y="0" />
                                </TransformGroup>
                            </Canvas.RenderTransform>

                            <Rectangle Width="10" Height="70" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="1" RadiusY="1" RenderTransformOrigin="0.5,0.5" Opacity="1" Fill="#FFFFFFFF" x:Name="rectangle">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1" />
                                        <SkewTransform AngleX="0" AngleY="0" />
                                        <RotateTransform Angle="0" />
                                        <TranslateTransform X="0" Y="0" />
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>

                            <Rectangle Width="10" Height="70" Stroke="#FF001078" StrokeThickness="1" RadiusX="1" RadiusY="1" RenderTransformOrigin="0.5,0.5" Opacity="0.745" x:Name="rectangle1">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.489,-0.25" StartPoint="0.489,1.133">
                                        <GradientStop Color="#FF0098EE" Offset="0.288" />
                                        <GradientStop Color="#FFFFFFFF" Offset="1" />
                                        <GradientStop Color="#BFFFFFFF" Offset="0" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1" />
                                        <SkewTransform AngleX="0" AngleY="0" />
                                        <RotateTransform Angle="0" />
                                        <TranslateTransform X="0" Y="0" />
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>

                            <Canvas Width="3.825" Height="25.308" Canvas.Left="3.088" Canvas.Top="22.346">
                                <Rectangle Width="2.583" Height="2.583" Fill="#FFFFFFFF" StrokeThickness="0" Canvas.Left="1.242" Canvas.Top="1.189" />
                                <Rectangle Opacity="0.725" Width="2.583" Height="2.583" Fill="#FF001078" StrokeThickness="0" />
                                <Rectangle Width="2.583" Height="2.583" Fill="#FFFFFFFF" StrokeThickness="0" Canvas.Left="1.242" Canvas.Top="6.439" />
                                <Rectangle Opacity="0.725" Width="2.583" Height="2.583" Fill="#FF001078" StrokeThickness="0" Canvas.Top="5.251" />
                                <Rectangle Width="2.583" Height="2.583" Fill="#FFFFFFFF" StrokeThickness="0" Canvas.Left="1.242" Canvas.Top="11.811" />
                                <Rectangle Opacity="0.725" Width="2.583" Height="2.583" Fill="#FF001078" StrokeThickness="0" Canvas.Top="10.629" />
                                <Rectangle Width="2.583" Height="2.583" Fill="#FFFFFFFF" StrokeThickness="0" Canvas.Left="1.242" Canvas.Top="17.207" />
                                <Rectangle Opacity="0.725" Width="2.583" Height="2.583" Fill="#FF001078" StrokeThickness="0" Canvas.Top="16.029" />
                                <Rectangle Width="2.583" Height="2.583" Fill="#FFFFFFFF" StrokeThickness="0" Canvas.Left="1.242" Canvas.Top="22.725" />
                                <Rectangle Opacity="0.725" Width="2.583" Height="2.583" Fill="#FF001078" StrokeThickness="0" Canvas.Top="21.547" />
                            </Canvas>

                        </Canvas>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="ButtonStyle3" TargetType="ButtonBase">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ButtonBase">
                        <Grid x:Name="grid" Background="Transparent" RenderTransformOrigin="0.5,0.5">
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Normal" />
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Pressed" />
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background1" Storyboard.TargetProperty="UIElement.Opacity">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background2" Storyboard.TargetProperty="UIElement.Opacity">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="UIElement.Opacity">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.2" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused" />
                                    <vsm:VisualState x:Name="Unfocused" />
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>

                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform />
                                    <SkewTransform />
                                    <RotateTransform />
                                    <TranslateTransform />
                                </TransformGroup>
                            </Grid.RenderTransform>
                            
                            <Rectangle x:Name="Background1" Stroke="#FF001078" StrokeThickness="1" RadiusX="5" RadiusY="5" Opacity="0.745">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.489,-0.25" StartPoint="0.489,1.133">
                                        <GradientStop Color="#FF0098EE" Offset="0.288" />
                                        <GradientStop Color="#FFFFFFFF" Offset="1" />
                                        <GradientStop Color="#FFFFFFFF" Offset="0" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>

                            <Rectangle x:Name="Background2" Margin="0.5 0.5 0.5 0.5" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="4" RadiusY="4" Canvas.Left="0.817" Canvas.Top="0.947">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                        <GradientStop Color="#00FFFFFF" Offset="0" />
                                        <GradientStop Color="#FFFFFFFF" 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>

                            <ContentPresenter x:Name="Content" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="4,0,4,0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Cursor="{TemplateBinding Cursor}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="ButtonStyle2" TargetType="ButtonBase">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ButtonBase">
                        <Grid x:Name="grid" Background="Transparent" RenderTransformOrigin="0.5,0.5">
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Normal" />
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Pressed" />
                                    <vsm:VisualState x:Name="Disabled" />
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused" />
                                    <vsm:VisualState x:Name="Unfocused" />
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>

                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform />
                                    <SkewTransform />
                                    <RotateTransform />
                                    <TranslateTransform />
                                </TransformGroup>
                            </Grid.RenderTransform>
                            
                            <Rectangle x:Name="Background1" Stroke="#FF00233F" StrokeThickness="1" RadiusX="5" RadiusY="5" Opacity="1">
                                <Rectangle.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>
                                </Rectangle.Fill>
                            </Rectangle>

                            <Rectangle x:Name="Background2" Stroke="#FFACDAFF" StrokeThickness="1" RadiusX="4" RadiusY="4" Margin="2,0,2,0">
                                <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>
                            <ContentPresenter x:Name="Content" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="4,0,4,0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Cursor="{TemplateBinding Cursor}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="PortfolioMenuButtonStyle" TargetType="ButtonBase">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ButtonBase">
                        <Grid x:Name="grid" Background="Transparent" RenderTransformOrigin="0.5,0.5">
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1" To="Pressed" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Normal" />
                                    <vsm:VisualState x:Name="MouseOver" />
                                    <vsm:VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled" />
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused" />
                                    <vsm:VisualState x:Name="Unfocused" />
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>

                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform />
                                    <SkewTransform />
                                    <RotateTransform />
                                    <TranslateTransform />
                                </TransformGroup>
                            </Grid.RenderTransform>
                            
                            <Rectangle x:Name="Background1" Stroke="#FF001078" StrokeThickness="1" RadiusX="5" RadiusY="5" Opacity="0.745">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.489,-0.25" StartPoint="0.489,1.133">
                                        <GradientStop Color="#FF0098EE" Offset="0.288" />
                                        <GradientStop Color="#FFFFFFFF" Offset="1" />
                                        <GradientStop Color="#FFFFFFFF" Offset="0" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>

                            <Rectangle x:Name="Background2" Margin="0.5 0.5 0.5 0.5" Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="4" RadiusY="4" Canvas.Left="0.817" Canvas.Top="0.947">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                        <GradientStop Color="#00FFFFFF" Offset="0" />
                                        <GradientStop Color="#FFFFFFFF" 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>

                            <ContentPresenter x:Name="Content" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="4,0,4,0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Cursor="{TemplateBinding Cursor}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <ControlTemplate x:Key="C1AccordionItemControlTemplate" TargetType="c1:C1AccordionItem">
            <Border x:Name="Root" Background="Transparent" BorderThickness="0" CornerRadius="3">
                <vsm:VisualStateManager.VisualStateGroups>
                    <vsm:VisualStateGroup x:Name="ExpansionStates">
                        <vsm:VisualState x:Name="Collapsed">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="Visibility">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Collapsed</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Expanded">
                        </vsm:VisualState>
                    </vsm:VisualStateGroup>
                    <vsm:VisualStateGroup x:Name="DirectionStates">
                        <vsm:VisualState x:Name="Left">
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Right">
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Up">
                        </vsm:VisualState>
                        <vsm:VisualState x:Name="Down">
                        </vsm:VisualState>
                    </vsm:VisualStateGroup>
                </vsm:VisualStateManager.VisualStateGroups>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>

                    <ToggleButton x:Name="ExpandButton" IsEnabled="{TemplateBinding IsExpandable}" Margin="10,1,10,1" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" FontFamily="{TemplateBinding HeaderFontFamily}" FontSize="{TemplateBinding HeaderFontSize}" FontStretch="{TemplateBinding HeaderFontStretch}" FontStyle="{TemplateBinding HeaderFontStyle}" FontWeight="{TemplateBinding HeaderFontWeight}" Foreground="{TemplateBinding HeaderForeground}" HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}" VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}" Style="{StaticResource ButtonStyle2}" Height="20" />

                        <ContentPresenter Grid.Row="1" x:Name="Content" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Cursor="{TemplateBinding Cursor}" Visibility="Visible" />
                </Grid>
            </Border>
        </ControlTemplate>
        <!--<Style  x:Key="TextBoxStyle" TargetType="c1:C1TextBoxBase">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1:C1TextBoxBase">
                        <Grid>
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualState x:Name="Normal"/>
                                    <vsm:VisualState x:Name="Disabled"/>
                                    <vsm:VisualState x:Name="MouseOver"/>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused">
                                        <Storyboard>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="WatermarkStates">
                                    <vsm:VisualState x:Name="Watermarked">
                                        <Storyboard>
                                            <DoubleAnimation Storyboard.TargetName="WatermarkElement" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.0"/>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unwatermarked">
                                        <Storyboard/>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Rectangle Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="3" RadiusY="3">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.504,0.483" StartPoint="0.504,-0.4">
                                        <GradientStop Color="#FFB4DDFF" Offset="0.524"/>
                                        <GradientStop Color="#FFFCFCFC" Offset="1"/>
                                        <GradientStop Color="#FFDDEEFD" Offset="0.688"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <ScrollViewer Padding="{TemplateBinding Padding}" x:Name="ContentElement" BorderThickness="0" Background="Transparent" />
                            <ContentControl
        			x:Name="WatermarkElement"
        			IsTabStop="False"
        			IsHitTestVisible="False"
        			Content="{TemplateBinding Watermark}"
        			Foreground="{StaticResource WatermarkBrush}"
        			Background="{TemplateBinding Background}"
        			FontFamily="{TemplateBinding FontFamily}"
        			FontSize="{TemplateBinding FontSize}"
        			FontStretch="{TemplateBinding FontStretch}"
        			FontStyle="{TemplateBinding FontStyle}"
        			FontWeight="{TemplateBinding FontWeight}"
        			Padding="{TemplateBinding Padding}"/>
                        </Grid>
                    </ControlTemplate>
                </vsm:Setter.Value>
            </Setter>
        </Style>-->
        <Style x:Key="CheckBoxStyle" TargetType="CheckBox">
            <Setter Property="IsEnabled" Value="true" />
            <Setter Property="IsTabStop" Value="true" />
            <Setter Property="Background" Value="#FF003255" />
            <Setter Property="Foreground" Value="#FF313131" />
            <Setter Property="Margin" Value="0" />
            <Setter Property="HorizontalContentAlignment" Value="Left" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="Cursor" Value="Arrow" />
            <Setter Property="FontSize" Value="11" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="CheckBox">
                        <Grid Cursor="Arrow">
                            <Grid.Resources>
                                <SolidColorBrush x:Key="Background" Color="#FF003255" />
                                <SolidColorBrush x:Key="DisabledBrush" Color="#A5FFFFFF" />
                                <LinearGradientBrush x:Key="BoxStrokeBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF000000" Offset="0" />
                                    <GradientStop Color="#FF000000" Offset="1" />
                                    <GradientStop Color="#FF000000" Offset="0.325" />
                                    <GradientStop Color="#FF000000" Offset="0.325" />
                                </LinearGradientBrush>
                                <LinearGradientBrush x:Key="FocusedStrokeBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#B2FFFFFF" Offset="0" />
                                    <GradientStop Color="#51FFFFFF" Offset="1" />
                                    <GradientStop Color="#66FFFFFF" Offset="0.325" />
                                    <GradientStop Color="#1EFFFFFF" Offset="0.325" />
                                </LinearGradientBrush>
                            </Grid.Resources>
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver" />
                                        <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Pressed" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Normal" />
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="blueHeader_Copy3" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFE6E6E6" />
                                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#FFB3B3B3" />
                                            </ColorAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="strokeHighlight_Copy3" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#FFFFFFFF" />
                                            </ColorAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="blueHeader_Copy3" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFE6E6E6" />
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FFFFFFFF" />
                                            </ColorAnimationUsingKeyFrames>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="strokeHighlight_Copy3" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FFFFFFFF" />
                                            </ColorAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="CheckStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Indeterminate" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Checked">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="Opacity">
                                                <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unchecked" />
                                    <vsm:VisualState x:Name="Indeterminate">
                                        <Storyboard />
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualState x:Name="Unfocused">
                                        <Storyboard>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="ContentFocused">
                                        <Storyboard>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="19" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Rectangle Stroke="#FF00233F" StrokeThickness="1" RadiusX="4" RadiusY="4" x:Name="blueHeader_Copy3" Opacity="1" Grid.ColumnSpan="2">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.489,-0.25" StartPoint="0.489,1.133">
                                        <GradientStop Color="#FFE6E6E6" Offset="0.288" />
                                        <GradientStop Color="#FFFFFFFF" Offset="1" />
                                        <GradientStop Color="#FFFFFFFF" Offset="0" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="3" RadiusY="3" x:Name="strokeHighlight_Copy3" Opacity="1" Canvas.Left="2.574" Canvas.Top="1.836" Grid.ColumnSpan="2" Margin="2,2,2,2">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                        <GradientStop Color="#00FFFFFF" Offset="0" />
                                        <GradientStop Color="#FFFFFFFF" 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>
                            <ContentPresenter Margin="6,5.5,4,4" x:Name="Content" IsHitTestVisible="true" Grid.Column="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
                            <Rectangle Stroke="#FFFFFDFD" StrokeThickness="0.5" RadiusX="1" RadiusY="1" HorizontalAlignment="Center" Width="12" Height="12" VerticalAlignment="Center" x:Name="Box">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.48,1.133" StartPoint="0.462,-0.217">
                                        <GradientStop Color="#FFA9A9A9" Offset="0.231" />
                                        <GradientStop Color="#FFFFFFFF" Offset="1" />
                                        <GradientStop Color="#FFFFFFFF" Offset="0" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Path x:Name="CheckIcon" Width="8.25" Fill="#FF00233F" Stretch="Fill" StrokeThickness="1" Data="M6.2789298,6.9922236 L8.507,9.6680002 13.660824,2.8299043 12.915208,1.8636517 8.2920877,7.2152975 6.2792279,5.7286624 z" HorizontalAlignment="Center" Height="8.25" VerticalAlignment="Center" Opacity="0" />
                            <Grid HorizontalAlignment="Left" Margin="18.375,0,0,0.275000005960464" Width="2">
                                <Path Width="1" Stretch="Fill" Stroke="#FFEEF0F2" StrokeThickness="1" Data="M128.008,4.3363333 L128.008,33.503" Opacity="1" HorizontalAlignment="Right" Margin="0,0.589999973773956,0,0.565999984741211" />
                                <Path Width="1" Stretch="Fill" Stroke="#FF00233F" StrokeThickness="1" Data="M128.008,4.3363333 L128.008,33.503" Opacity="1" HorizontalAlignment="Left" Margin="0,0,0,0.18299999833107" />
                            </Grid>
                            <Rectangle x:Name="DisabledVisual" Style="{StaticResource DisabledStyle}" Width="12" Height="12" HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Color x:Key="MainColor">#FF3C688D</Color>
        <SolidColorBrush x:Key="MainBrushColor" Color="{StaticResource MainColor}" />
        <Style x:Key="FocusStyle2" TargetType="Border">
        	<Setter Property="Opacity" Value="0" />
        	<Setter Property="Margin" Value="1" />
        	<Setter Property="IsHitTestVisible" Value="False" />
        	<Setter Property="BorderBrush" Value="{StaticResource MainBrushColor}" />
        	<Setter Property="CornerRadius" Value="1" />
        </Style>
        <LinearGradientBrush x:Key="BorderBrush2" EndPoint="0.5,1" StartPoint="0.5,0">
        	<GradientStop Color="#7FFFFFFF" Offset="0.05" />
        	<GradientStop Color="#B2FFFFFF" Offset="0.07" />
        	<GradientStop Color="#0C000000" Offset="1" />
        </LinearGradientBrush>
        <Style x:Key="DisabledStyle2" TargetType="Border">
        	<Setter Property="Background" Value="#A5F7F7F7" />
        	<Setter Property="BorderBrush" Value="#A5F7F7F7" />
        	<Setter Property="Opacity" Value="0" />
        	<Setter Property="IsHitTestVisible" Value="False" />
        </Style>

        <Style x:Key="C1TextBoxBaseStyle1" TargetType="c1:C1TextBoxBase">
        	<Setter Property="BorderThickness" Value="1" />
        	<Setter Property="Background" Value="#FFFFFFFF" />
        	<Setter Property="Foreground" Value="#FF000000" />
        	<Setter Property="Padding" Value="2" />
        	<Setter Property="BorderBrush">
        		<Setter.Value>
        			<LinearGradientBrush 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>
        		</Setter.Value>
        	</Setter>
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="c1:C1TextBoxBase">
        				<Grid x:Name="RootElement">
        					<vsm:VisualStateManager.VisualStateGroups>
        						<vsm:VisualStateGroup x:Name="CommonStates">
        							<vsm:VisualStateGroup.Transitions>
        								<vsm:VisualTransition GeneratedDuration="00:00:00.1" To="MouseOver" />
        								<vsm:VisualTransition GeneratedDuration="00:00:00.1" To="ReadOnly" />
        								<vsm:VisualTransition GeneratedDuration="00:00:00.1" To="Disabled" />
        							</vsm:VisualStateGroup.Transitions>
        							<vsm:VisualState x:Name="Normal" />
        							<vsm:VisualState x:Name="MouseOver">
        							</vsm:VisualState>
        							<vsm:VisualState x:Name="Disabled">
        							</vsm:VisualState>
        							<vsm:VisualState x:Name="ReadOnly">
        								<Storyboard>
        									<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ReadOnlyVisualElement" Storyboard.TargetProperty="Opacity">
        										<SplineDoubleKeyFrame KeyTime="0" Value="1" />
        									</DoubleAnimationUsingKeyFrames>
        								</Storyboard>
        							</vsm:VisualState>
        						</vsm:VisualStateGroup>
        						<vsm:VisualStateGroup x:Name="FocusStates">
        							<vsm:VisualState x:Name="Focused">
        								<Storyboard />
        							</vsm:VisualState>
        							<vsm:VisualState x:Name="Unfocused">
        								<Storyboard />
        							</vsm:VisualState>
        						</vsm:VisualStateGroup>
        						<vsm:VisualStateGroup x:Name="WatermarkStates">
        							<vsm:VisualState x:Name="Watermarked">
        								<Storyboard>
        									<DoubleAnimation Duration="0:0:0.0" Storyboard.TargetName="Watermark" Storyboard.TargetProperty="Opacity" To="1" />
        								</Storyboard>
        							</vsm:VisualState>
        							<vsm:VisualState x:Name="Unwatermarked">
        								<Storyboard />
        							</vsm:VisualState>
        						</vsm:VisualStateGroup>
        					</vsm:VisualStateManager.VisualStateGroups>
                            
                            <Rectangle Stroke="#FFFFFFFF" StrokeThickness="1" RadiusX="3" RadiusY="3">
        						<Rectangle.Fill>
        							<LinearGradientBrush EndPoint="0.504,0.483" StartPoint="0.504,-0.4">
        								<GradientStop Color="#FFB4DDFF" Offset="0.524" />
        								<GradientStop Color="#FFFCFCFC" Offset="1" />
        								<GradientStop Color="#FFDDEEFD" Offset="0.688" />
        							</LinearGradientBrush>
        						</Rectangle.Fill>
        					</Rectangle>
        					<Grid>
        						<Border x:Name="ReadOnlyVisualElement" Opacity="0" Background="#72F7F7F7" />
        						<Border BorderThickness="1">
        							<Border.BorderBrush>
        								<SolidColorBrush Color="Transparent" x:Name="MouseOverColor" />
        							</Border.BorderBrush>
        							<ScrollViewer x:Name="ContentElement" BorderThickness="0" IsTabStop="False" Padding="{TemplateBinding Padding}" />
        						</Border>
        					</Grid>
        					<ContentControl x:Name="Watermark" IsHitTestVisible="False" Opacity="0" Content="{TemplateBinding Watermark}" Background="{TemplateBinding Background}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}" FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{StaticResource WatermarkBrush}" IsTabStop="False" Padding="{TemplateBinding Padding}" />
        				</Grid>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>

        <ControlTemplate x:Key="C1NumericBoxControlTemplate1" TargetType="c1:C1NumericBox">
            <Grid>
                <c1:C1TextBoxBase x:Name="Text" FocusCuesVisibility="Collapsed" Background="Transparent" BorderThickness="0" TextAlignment="Right" Style="{StaticResource C1TextBoxBaseStyle1}" />
            </Grid>
        </ControlTemplate>

        <!--ChartRangeSlider-->
        <Style TargetType="c1:C1RangeSlider" x:Key="ChartSliderStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1:C1RangeSlider">
                        <Grid x:Name="HorizontalTemplate">
                            <Grid.Resources>
                                <Style x:Key="ChartThumbStyle" TargetType="Thumb">
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="Thumb">
                                                <Grid>
                                                    <Path Margin="-0.961000025272369,-4.61600017547607,-0.090999998152256,-12.4709997177124" x:Name="ThumbOuterBorder_Copy" Opacity="1" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="0" Data="M-2.0274711,-0.5547592 C-1.9408476,-1.0769339 -1.3887901,-1.190791 -1.0646199,-1.1897795 C1.3567252,-1.1822242 3.301475,-1.1839552 5.8217106,-1.1848332 C6.1930594,-1.1849625 6.863904,-1.1440099 6.9102426,-0.54161501 C6.9102426,-0.54161501 6.9853616,37.38686 6.9853616,37.38686 C6.9194546,4.0274358 6.971796,30.520611 6.9856243,37.519978 C6.9420233,38.750851 6.3816071,39.058956 5.6972623,39.099186 L5.1588135,39.100883 C4.1257191,39.112328 3.8004863,38.234402 2.7583165,36.662876 C1.742781,35.131512 0.25074181,32.929195 -1.5394146,30.200945 C-1.8523021,29.740076 -1.9630001,29.246372 -1.9859972,28.760906 L-1.9882457,17.66724 z" />
                                                    <Path Margin="-0.961000025272369,-4.6269998550415,-0.103000000119209,-12.4720001220703" x:Name="ThumbOuterBorderFill_Copy" IsHitTestVisible="true" Opacity="0.745" Stretch="Fill" Stroke="#FF001078" StrokeThickness="1" Data="M-2.8623624,-1.1843706 C-2.8492591,-1.5071304 -2.9681723,-1.7475874 -2.3223915,-1.7461797 C-1.6036257,-1.7446128 0.16164984,-1.7468007 2.0171599,-1.7405456 C4.2540574,-1.7330048 5.7977533,-1.7292372 6.4792876,-1.729975 C7.0779705,-1.7306231 6.9996076,-1.5146106 7,-1.1843706 C7.0164022,12.624743 7.0622993,-1.1848108 7.1049213,38.123203 C7.1094379,39.371082 6.7018566,39.543003 5.8870869,39.526989 C5.0564327,39.510662 4.9467573,39.608906 4.2893744,38.885986 C-3.1010163,29.549986 -2.7862365,30.236876 -2.8623624,29 C-2.7513485,19.418379 -2.8568234,-0.65230715 -2.8623624,-1.1843706 z">
                                                        <Path.Fill>
                                                            <LinearGradientBrush EndPoint="0.489,-0.25" StartPoint="0.489,1.133">
                                                                <GradientStop Color="#FF133B73" Offset="0.288" />
                                                                <GradientStop Color="#FFFFFFFF" Offset="1" />
                                                                <GradientStop Color="#BFFFFFFF" Offset="0" />
                                                            </LinearGradientBrush>
                                                        </Path.Fill>
                                                    </Path>
                                                    <Path HorizontalAlignment="Right" Margin="0,-3.625,0.906000018119812,-11.4379997253418" x:Name="ThumbInnerBorderFill_Copy" VerticalAlignment="Stretch" Width="1.297" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFD4E9F7" StrokeThickness="0" Data="M0.18244027,1.0034671 L9.8120003,0.99999976 L9.8120003,10.843858 L8.7680244,11 L2.8559322,11 L0.18236898,10.916677 z" />
                                                </Grid>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </Grid.Resources>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Rectangle x:Name="Box" Stroke="#FF001078" StrokeThickness="0.75" RadiusX="1" RadiusY="1" Opacity="0.85" Grid.Column="2" VerticalAlignment="Stretch" Margin="0,0,0,0">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.489,-0.25" StartPoint="0.489,1.133">
                                        <GradientStop Color="#5E0098EE" Offset="0.288" />
                                        <GradientStop Color="#2ADCF2FD" Offset="1" />
                                        <GradientStop Color="#28CDEDFF" Offset="0" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <!-- Repeat Buttons + Thumb -->
                            <RepeatButton x:Name="DecreaseRepeatButton" Grid.Column="0" Background="Transparent" Opacity="0" IsTabStop="False" />
                            <Thumb x:Name="LowerThumb" Height="30" Width="8" Style="{StaticResource ChartThumbStyle}" HorizontalAlignment="Left" Margin="0,0,-1,0" Grid.Column="1" d:LayoutOverrides="GridBox" VerticalAlignment="Stretch" />
                            <Thumb x:Name="MiddleThumb" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="2" Background="Transparent" Opacity="0" IsTabStop="False" Margin="0,0,0,0" />
                            <Thumb x:Name="UpperThumb" Height="30" Width="8" Grid.Column="3" Style="{StaticResource ChartThumbStyle}" Margin="-1,0,0,0" RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="GridBox">
                                <Thumb.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="-1" />
                                        <SkewTransform />
                                        <RotateTransform />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Thumb.RenderTransform>
                            </Thumb>
                            <RepeatButton x:Name="IncreaseRepeatButton" Grid.Column="4" Background="Transparent" Opacity="0" IsTabStop="False" />
                            <!-- Focus indicator -->
                            <Rectangle x:Name="DisabledVisual" Style="{StaticResource DisabledStyle}" Grid.ColumnSpan="5" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style TargetType="c1:C1DropDownButton" x:Key="PortfolioMenuStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1:C1DropDownButton">
                        <Grid>
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="DropDownOpenStates">
                                    <vsm:VisualState x:Name="Closed" />
                                    <vsm:VisualState x:Name="Open" />
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualState x:Name="Normal" />
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisual" Storyboard.TargetProperty="Visibility" Duration="0">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="MouseOver" />
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="0:0:0.1" To="Focused" />
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Unfocused" />
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="1" />
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Grid>
                                <ToggleButton x:Name="ArrowToggle" IsEnabled="{TemplateBinding IsEnabled}" Style="{StaticResource PortfolioMenuButtonStyle}" Content="{TemplateBinding Header}" />
                            </Grid>
                            <Rectangle x:Name="DisabledVisual" Style="{StaticResource DisabledStyle}" />
                            <Border x:Name="FocusVisual" Style="{StaticResource FocusStyle2}" />

                            <Popup x:Name="DropDownPopup" VerticalAlignment="Bottom">
                                <Grid Width="{Binding Path=DropDownWidth,RelativeSource={RelativeSource TemplatedParent}}" Height="{Binding Path=DropDownHeight,RelativeSource={RelativeSource TemplatedParent}}" MinWidth="{Binding Path=MinDropDownWidth,RelativeSource={RelativeSource TemplatedParent}}" MinHeight="{Binding Path=MinDropDownHeight,RelativeSource={RelativeSource TemplatedParent}}" MaxWidth="{Binding Path=MaxDropDownWidth,RelativeSource={RelativeSource TemplatedParent}}" MaxHeight="{Binding Path=MaxDropDownHeight,RelativeSource={RelativeSource TemplatedParent}}">
                                    <ContentPresenter Margin="{Binding Path=Padding,RelativeSource={RelativeSource TemplatedParent}}" />
                                </Grid>
                            </Popup>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</Application>