Commits

lfoust committed b03afe9

Added support for the new migration details added to question.

Comments (0)

Files changed (48)

trunk/examples/Stackanimate/Stackanimate/App.xaml

+<Application
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"   
+    x:Class="Stackanimate.App"
+    >
+
+    <Application.Resources>
+        <ResourceDictionary>
+            <ResourceDictionary.MergedDictionaries>
+                <ResourceDictionary Source="Assets/Styles.xaml"/>
+                <ResourceDictionary Source="Assets/CoreStyles.xaml"/>
+                <ResourceDictionary Source="Assets/SDKStyles.xaml"/>
+                <!--<ResourceDictionary Source="Assets/ToolkitStyles.xaml"/>
+                To extend this theme to include the toolkit controls:
+                1. Install the Silverlight Toolkit for Silverlight 4
+                2. Add a Toolkit control to your project from the toolbox. This will add references to toolkit assemblies.
+                3. Change the "Build Action" for ToolkitStyles.xaml to "Page"
+                4. Uncomment the resource dictionary include above.
+                
+                If you do not intend to use toolkit controls, delete this comment and the ToolkitStyles.xaml file.-->
+            </ResourceDictionary.MergedDictionaries>
+        </ResourceDictionary>
+    </Application.Resources>
+
+</Application>

trunk/examples/Stackanimate/Stackanimate/App.xaml.cs

+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using Stacky;
+
+namespace Stackanimate
+{
+    public partial class App : Application
+    {
+        public App()
+        {
+            this.Startup += this.Application_Startup;
+            this.UnhandledException += this.Application_UnhandledException;
+
+            InitializeComponent();
+        }
+
+        private void Application_Startup(object sender, StartupEventArgs e)
+        {
+            this.RootVisual = new MainPage();
+            Client = new StackyClient("0.8", "", HostSite.StackOverflow, new UrlClient(), new JsonProtocol());
+        }
+
+        public static StackyClient Client { get; set; }
+
+        private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
+        {
+            // If the app is running outside of the debugger then report the exception using
+            // a ChildWindow control.
+            if (!System.Diagnostics.Debugger.IsAttached)
+            {
+                // NOTE: This will allow the application to continue running after an exception has been thrown
+                // but not handled. 
+                // For production applications this error handling should be replaced with something that will 
+                // report the error to the website and stop the application.
+                e.Handled = true;
+                ChildWindow errorWin = new ErrorWindow(e.ExceptionObject);
+                errorWin.Show();
+            }
+        }
+    }
+}

trunk/examples/Stackanimate/Stackanimate/Assets/Brushes.xaml

+<ResourceDictionary
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+
+    <!-- Brushes Start -->
+
+    <Color x:Key="WhiteColor">#FFFFFFFF</Color>
+    <Color x:Key="BlackColor">#FF000000</Color>
+
+    <Color x:Key="SystemBlue">#FF3399FF</Color>
+
+    <SolidColorBrush x:Key="MainInstructionBrush">#FF003399</SolidColorBrush>
+    <SolidColorBrush x:Key="DisabledTextBrush">#FF323232</SolidColorBrush>
+    <SolidColorBrush x:Key="LinkTextBrush">#FF0066CC</SolidColorBrush>
+    <SolidColorBrush x:Key="LinkHoverBrush">#FF3399FF</SolidColorBrush>
+
+    <LinearGradientBrush x:Key="NormalBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFF2F2F2" Offset="0.0" />
+        <GradientStop Color="#FFEBEBEB" Offset="0.49"/>
+        <GradientStop Color="#FFDDDDDD" Offset="0.5"/>
+        <GradientStop Color="#FFCFCFCF" Offset="1.0" />
+    </LinearGradientBrush>
+
+    <SolidColorBrush x:Key="NormalBorderBrush" Color="#FF898989" />
+
+    <LinearGradientBrush x:Key="InnerBorderBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFFCFCFC" Offset="0.0"/>
+        <GradientStop Color="#FFF3F3F3" Offset="1.0"/>
+    </LinearGradientBrush>
+
+    <LinearGradientBrush x:Key="MouseOverBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFEAF6FD" Offset="0.0" />
+        <GradientStop Color="#FFD9F0FC" Offset="0.49" />
+        <GradientStop Color="#FFBEE6FD" Offset="0.5" />
+        <GradientStop Color="#FFA7D9F5" Offset="1.0" />
+    </LinearGradientBrush>
+
+    <SolidColorBrush x:Key="MouseOverBorderBrush" Color="#FF3C7FB1" />
+
+    <LinearGradientBrush x:Key="MouseOverInnerBorderBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFFAFDFE" Offset="0.0"/>
+        <GradientStop Color="#FFE8F5FC" Offset="1.0"/>
+    </LinearGradientBrush>
+
+    <LinearGradientBrush x:Key="PressedBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFE5F4FC" Offset="0.0" />
+        <GradientStop Color="#FFC4E5F6" Offset="0.49"/>
+        <GradientStop Color="#FF98D1EF" Offset="0.5" />
+        <GradientStop Color="#FF68B3DB" Offset="1.0" />
+    </LinearGradientBrush>
+
+    <SolidColorBrush x:Key="PressedBorderBrush" Color="#FF2C628B" />
+
+    <LinearGradientBrush x:Key="PressedInnerBorderBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FF9EB0BA" Offset="0.0"/>
+        <GradientStop Color="#FF9ABACB" Offset="0.49" />
+        <GradientStop Color="#FF78AAC5" Offset="0.5" />
+        <GradientStop Color="#FF68B3DB" Offset="1.0"/>
+    </LinearGradientBrush>
+
+    <LinearGradientBrush x:Key="DefaultedBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFECF1F3" Offset="0.0" />
+        <GradientStop Color="#FFEBECEC" Offset="0.49" />
+        <GradientStop Color="#FFDCDEDF" Offset="0.5" />
+        <GradientStop Color="#FFC9D0D2" Offset="1.0" />
+    </LinearGradientBrush>
+
+    <LinearGradientBrush x:Key="DefaultedInnerBorderBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FF43D7FC" Offset="0.0" />
+        <GradientStop Color="#FF38CDF2" Offset="1.0" />
+    </LinearGradientBrush>
+
+    <LinearGradientBrush x:Key="DefaultedBrushChanged" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFEBF6FC" Offset="0.0" />
+        <GradientStop Color="#FFE5F3FB" Offset="0.49" />
+        <GradientStop Color="#FFCBE8F8" Offset="0.5" />
+        <GradientStop Color="#FFB8DDF2" Offset="1.0" />
+    </LinearGradientBrush>
+
+    <LinearGradientBrush x:Key="DefaultedInnerBorderBrush1" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FF2FD4FF" Offset="0.0" />
+        <GradientStop Color="#FF24CFFC" Offset="1.0" />
+    </LinearGradientBrush>
+
+    <SolidColorBrush x:Key="FocusedBrush" Color="#FF45D8FB" />
+
+    <!-- CheckBox/RadioButton Brushes Start -->
+    <SolidColorBrush x:Key="CheckBoxBrush" Color="#FFF4F4F4"/>
+    <SolidColorBrush x:Key="CheckBoxInnerBorderBrush" Color="#FFCBCFD5"/>
+    <SolidColorBrush x:Key="CheckBoxInnerBorderStrokeBrush" Color="#FFAEB3B9"/>
+    <SolidColorBrush x:Key="CheckBoxMouseOverBrush" Color="#FFDEF9FA"/>
+    <SolidColorBrush x:Key="CheckBoxMouseOverBorderBrush" Color="#FF5586A3"/>
+    <SolidColorBrush x:Key="CheckBoxInnerBorderMouseOverBrush" Color="#FFB1DFFD"/>
+    <SolidColorBrush x:Key="CheckBoxInnerBorderMouseOverStrokeBrush" Color="#FF79C6F9"/>
+    <SolidColorBrush x:Key="CheckBoxPressedBrush" Color="#FFC2E4F6"/>
+    <SolidColorBrush x:Key="CheckBoxPressedBorderBrush" Color="#FF2C628B"/>
+    <SolidColorBrush x:Key="CheckBoxInnerBorderPressedBrush" Color="#FF9DD5FC"/>
+    <SolidColorBrush x:Key="CheckBoxInnerBorderPressedStrokeBrush" Color="#FF5EB6F7"/>
+    <LinearGradientBrush x:Key="CheckBoxIndeterminateBrush" EndPoint="0.833,0.833" StartPoint="0.284,0.299">
+        <GradientStop Color="#FF7FC8E4" Offset="0"/>
+        <GradientStop Color="#FF25598C" Offset="1"/>
+        <GradientStop Color="#FF2FA8D5" Offset="0.073"/>
+        <GradientStop Color="#FF1E698F" Offset="0.914"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="CheckBoxIndeterminateBorderBrush" EndPoint="0.854,0.854" StartPoint="0.146,0.146">
+        <GradientStop Color="#FF2A628E" Offset="0"/>
+        <GradientStop Color="#FF193B55" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="CheckBoxGradientBrush" EndPoint="0.826,0.879" StartPoint="0.185,0.179">
+        <GradientStop Color="Transparent" Offset="0"/>
+        <GradientStop Color="#CCFFFFFF" Offset="1"/>
+        <GradientStop Color="#0CFFFFFF" Offset="0.241"/>
+    </LinearGradientBrush>
+    <!-- CheckBox/RadioButton Brushes Stop -->
+
+
+    <!-- ScrollBar / RepeatButton Brushes Start -->
+    <Color x:Key="ScrollBarDarkGlyph">#FF212121</Color>
+    <Color x:Key="ScrollBarLightGlyph">#FFC2C2C2</Color>
+
+    <LinearGradientBrush x:Key="VerticalRepeatButtonInsetBrush" EndPoint="1.008,0.5" StartPoint="0.004,0.5">
+        <GradientStop Offset="0"/>
+        <GradientStop Color="#FF9CCAE3" Offset="1"/>
+        <GradientStop Color="#4BE1EFF6" Offset="0.151"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="VerticalRepeatButtonShineBrush" EndPoint="0.998,0.5" StartPoint="0.006,0.5">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Color="#B2FFFFFF" Offset="0"/>
+        <GradientStop Color="#FFE4E4E4" Offset="0.237"/>
+        <GradientStop Color="#CCD4D4D4" Offset="1"/>
+        <GradientStop Color="#FFC2C2C2" Offset="0.704"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="VerticalRepeatButtonMouseOverBrush" EndPoint="0.998,0.5" StartPoint="0.006,0.5">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Color="#FFEAF6FD" Offset="0"/>
+        <GradientStop Color="#FFD9F0FC" Offset="0.49"/>
+        <GradientStop Color="#FFBEE6FD" Offset="0.5"/>
+        <GradientStop Color="#FFA7D9F5" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="VerticalRepeatButtonPressedBrush" EndPoint="0.998,0.5" StartPoint="0.006,0.5">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Color="#FFEAF6FD" Offset="0"/>
+        <GradientStop Color="#FFD9F0FC" Offset="0.49"/>
+        <GradientStop Color="#FFBEE6FD" Offset="0.5"/>
+        <GradientStop Color="#FF69C0E4" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="VerticalRepeatButtonPressedBorderInset" EndPoint="1.008,0.5" StartPoint="0.004,0.5">
+        <GradientStop Offset="0"/>
+        <GradientStop Color="#FF9EC7D9" Offset="1"/>
+        <GradientStop Color="#4BE1EFF6" Offset="0.151"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="VerticalRepeatButtonPressedInnerBorder1Brush" EndPoint="0.998,0.5" StartPoint="-0.004,0.5">
+        <GradientStop Color="#00FAFDFE" Offset="0.0"/>
+        <GradientStop Color="#FF9EC7D9" Offset="1.0"/>
+        <GradientStop Color="#FF9EC7D9" Offset="0.455"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonMouseOverBrush" EndPoint="0.502,1.004" StartPoint="0.502,-0.023">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Color="#FFEAF6FD" Offset="0"/>
+        <GradientStop Color="#FFD9F0FC" Offset="0.49"/>
+        <GradientStop Color="#FFBEE6FD" Offset="0.5"/>
+        <GradientStop Color="#FFA7D9F5" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonMouseOverBorderInset" EndPoint="0.506,1.061" StartPoint="0.506,-0.061">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Offset="0"/>
+        <GradientStop Color="#FF9CCAE3" Offset="1"/>
+        <GradientStop Color="#4BE1EFF6" Offset="0.151"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonPressedBrush" EndPoint="0.502,0.995" StartPoint="0.502,-0.004">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Color="#FFEAF6FD" Offset="0"/>
+        <GradientStop Color="#FFD9F0FC" Offset="0.49"/>
+        <GradientStop Color="#FFBEE6FD" Offset="0.5"/>
+        <GradientStop Color="#FF69C0E4" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonPressedInnerBorderBrush" EndPoint="0.506,1.038" StartPoint="0.506,-0.038">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Offset="0"/>
+        <GradientStop Color="#FF9CCAE3" Offset="1"/>
+        <GradientStop Color="#4BE1EFF6" Offset="0.151"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonPressedBorderInsetBrush" EndPoint="0.506,1.061" StartPoint="0.506,-0.072">
+        <GradientStop Offset="0"/>
+        <GradientStop Color="#FF9EC7D9" Offset="1"/>
+        <GradientStop Color="#4BE1EFF6" Offset="0.151"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonShineBrush" EndPoint="0.502,1.004" StartPoint="0.502,-0.004">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Color="#B2FFFFFF" Offset="0"/>
+        <GradientStop Color="#FFE4E4E4" Offset="0.237"/>
+        <GradientStop Color="#CCD4D4D4" Offset="1"/>
+        <GradientStop Color="#FFC2C2C2" Offset="0.656"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonPressedInnerBorder1Brush" EndPoint="0.497,1.044" StartPoint="0.497,-0.034">
+        <GradientStop Color="#00FAFDFE" Offset="0.0"/>
+        <GradientStop Color="#FF9EC7D9" Offset="1.0"/>
+        <GradientStop Color="#FF9EC7D9" Offset="0.455"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonBrush" EndPoint="0.503,1.003" StartPoint="0.503,-0.003">
+        <GradientStop Color="WhiteSmoke" Offset="0.0" />
+        <GradientStop Color="#FFE5E6E8" Offset="0.49"/>
+        <GradientStop Color="#FFD9DADC" Offset="0.5"/>
+        <GradientStop Color="#FFC0C0C4" Offset="1.0" />
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="HorizontalRepeatButtonInnerBorderBrush" EndPoint="0.504,1" StartPoint="0.504,0">
+        <GradientStop Color="WhiteSmoke" Offset="0.0"/>
+        <GradientStop Color="#FFCFCFD1" Offset="1.0"/>
+        <GradientStop Color="#FFEAEAEB" Offset="0.49"/>
+        <GradientStop Color="#FFDDDDDE" Offset="0.5"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="VerticalRepeatButtonBrush" EndPoint="1.006,0.5" StartPoint="0,0.5">
+        <GradientStop Color="WhiteSmoke" Offset="0.0" />
+        <GradientStop Color="#FFE5E6E8" Offset="0.49"/>
+        <GradientStop Color="#FFD9DADC" Offset="0.5"/>
+        <GradientStop Color="#FFC0C0C4" Offset="1.0" />
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="VerticalRepeatButtonInnerBorderBrush" EndPoint="1.004,0.5" StartPoint="0.004,0.5">
+        <GradientStop Color="WhiteSmoke" Offset="0.0"/>
+        <GradientStop Color="#FFCFCFD1" Offset="1.0"/>
+        <GradientStop Color="#FFEAEAEB" Offset="0.49"/>
+        <GradientStop Color="#FFDDDDDE" Offset="0.5"/>
+    </LinearGradientBrush>
+    <!-- ScrollBar / RepeatButton Brushes Stop -->
+
+    <!-- ListItemBrushes Start -->
+    <LinearGradientBrush x:Key="ListItemMouseOverBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="#FFFCFDFE" Offset="0"/>
+        <GradientStop Color="#FFF2F7FE" Offset="1"/>
+        <GradientStop Color="#FFF4F8FD" Offset="0.5"/>
+    </LinearGradientBrush>
+    <SolidColorBrush x:Key="ListItemMouseOverBorderBrush" Color="#FFB8D6FB"/>
+    <LinearGradientBrush x:Key="ListItemSelectedBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="#FFDCEBFC" Offset="0"/>
+        <GradientStop Color="#FFC1DBFC" Offset="1"/>
+        <GradientStop Color="#FFCEE2FC" Offset="0.5"/>
+    </LinearGradientBrush>
+    <SolidColorBrush x:Key="ListItemSelectedBorderBrush" Color="#FF7DA2CE"/>
+    <SolidColorBrush x:Key="ListItemSelectedInnerBorderBrush" Color="#FFDBEAFD"/>
+    <!-- ListItemBrushes Stop -->
+
+    <!-- TextBox Brushes Start -->
+    <LinearGradientBrush x:Key="TextBoxBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <LinearGradientBrush.RelativeTransform>
+            <MatrixTransform/>
+        </LinearGradientBrush.RelativeTransform>
+        <GradientStop Color="#FFABADB3" Offset="0"/>
+        <GradientStop Color="#FFE2E3EA" Offset="0.035"/>
+        <GradientStop Color="#FFE3E9EF" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="TextBoxMouseOverBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="#FF5794BF" Offset="0"/>
+        <GradientStop Color="#FFC7E2F1" Offset="1"/>
+        <GradientStop Color="#FFC0D7E7" Offset="0.026"/>
+    </LinearGradientBrush>
+    <!-- TextBox Brushes Stop -->
+
+    <!-- ProgressBar Brush Starts -->
+    <LinearGradientBrush x:Key="ProgressBarTrackBrush" EndPoint="0.994,0.5" StartPoint="0.008,0.5">
+        <GradientStop Color="#FFBCBBBB" Offset="0"/>
+        <GradientStop Color="#FFBCBBBB" Offset="1"/>
+        <GradientStop Color="#FFC1C1C1" Offset="0.035"/>
+        <GradientStop Color="#FFC1C1C1" Offset="0.974"/>
+        <GradientStop Color="#FFC5C5C5" Offset="0.064"/>
+        <GradientStop Color="#FFC5C5C5" Offset="0.952"/>
+        <GradientStop Color="#FFC7C7C7" Offset="0.087"/>
+        <GradientStop Color="#FFC7C7C7" Offset="0.929"/>
+        <GradientStop Color="#FFC9C9C9" Offset="0.093"/>
+        <GradientStop Color="#FFC9C9C9" Offset="0.923"/>
+        <GradientStop Color="#FFC9C9C9" Offset="0.494"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="ProgressBarTrackInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="#FFD1D1D1" Offset="0"/>
+        <GradientStop Color="#FFEAEAEA" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="ProgressBarBottomGlowBrush" EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
+        <GradientStop Color="#00FDFDFD" Offset="0"/>
+        <GradientStop Color="#66FFFFFF" Offset="1"/>
+        <GradientStop Color="#4CFEFEFE" Offset="0.952"/>
+        <GradientStop Color="#33FDFDFD" Offset="0.901"/>
+        <GradientStop Color="#19FDFDFD" Offset="0.856"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="ProgressBarIndicatorBrush" EndPoint="0.994,0.5" StartPoint="0.008,0.5">
+        <GradientStop Color="#FF10BC29" Offset="0"/>
+        <GradientStop Color="#FF10BC29" Offset="1"/>
+        <GradientStop Color="#FF05B124" Offset="0.032"/>
+        <GradientStop Color="#FF05B124" Offset="0.968"/>
+        <GradientStop Color="#FF00B222" Offset="0.067"/>
+        <GradientStop Color="#FF00B222" Offset="0.929"/>
+        <GradientStop Color="#FF00BB24" Offset="0.103"/>
+        <GradientStop Color="#FF00BB24" Offset="0.891"/>
+        <GradientStop Color="#FF00C626" Offset="0.141"/>
+        <GradientStop Color="#FF00C626" Offset="0.856"/>
+        <GradientStop Color="#FF00D027" Offset="0.179"/>
+        <GradientStop Color="#FF00D027" Offset="0.821"/>
+        <GradientStop Color="#FF00D328" Offset="0.5"/>
+    </LinearGradientBrush>
+    <SolidColorBrush x:Key="ProgressBarIndicatorBorderBrush" Color="#FF1CD630"/>
+    <LinearGradientBrush x:Key="ProgressBarIndeterminateBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="#FF48E85E" Offset="0"/>
+        <GradientStop Color="#FF48E85E" Offset="1"/>
+        <GradientStop Color="#FF39DE55" Offset="0.949"/>
+        <GradientStop Color="#FF2CDB4D" Offset="0.897"/>
+        <GradientStop Color="#FF0DD633" Offset="0.849"/>
+        <GradientStop Color="#FF39DE55" Offset="0.054"/>
+        <GradientStop Color="#FF2CDB4D" Offset="0.106"/>
+        <GradientStop Color="#FF0DD633" Offset="0.16"/>
+        <GradientStop Color="#FF0DD633" Offset="0.506"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="ProgressBarShineBrush" EndPoint="0.5,0.971" StartPoint="0.5,0.029">
+        <GradientStop Color="#E5F3F3F3" Offset="0"/>
+        <GradientStop Color="Transparent" Offset="1"/>
+        <GradientStop Color="#CCFCFCFC" Offset="0.045"/>
+        <GradientStop Color="#B2EFEFEF" Offset="0.093"/>
+        <GradientStop Color="#4CF6F6F6" Offset="0.442"/>
+        <GradientStop Color="#00F6F6F6" Offset="0.452"/>
+        <GradientStop Color="#66F2F2F2" Offset="0.337"/>
+        <GradientStop Color="#99F1F1F1" Offset="0.208"/>
+    </LinearGradientBrush>
+    <!-- ProgressBar Brush Stops -->
+
+    <!--Universal Control Brushes Start-->
+    <SolidColorBrush x:Key="ControlBackgroundBrush" Color="#FFFCFCFC" />
+
+    <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#FFF4F4F4" />
+
+    <SolidColorBrush x:Key="DisabledBorderBrush" Color="#FFBABEC0" />
+
+    <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#FFA3A8AB" />
+
+    <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FFF0F0F0" />
+
+    <SolidColorBrush x:Key="TextBrush" Color="{StaticResource BlackColor}" />
+    <SolidColorBrush x:Key="GlyphBrush" Color="#FF042271"/>
+    <!--Universal Control Brushes Stops-->
+
+
+    <!--ComboBox Brushes Starts-->
+    <SolidColorBrush x:Key="ComboBoxItemMouseOverBrush" Color="{StaticResource SystemBlue}"/>
+    <LinearGradientBrush x:Key="ComboBox2NormalBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFFCFDFF" Offset="0.0" />
+        <GradientStop Color="#FFE6F0FA" Offset="0.49" />
+        <GradientStop Color="#FFDCE6F4" Offset="0.5" />
+        <GradientStop Color="#FFDCE7F5" Offset="1.0" />
+    </LinearGradientBrush>
+    <SolidColorBrush x:Key="ComboBox2NormalBorderBrush" Color="#FFB3C5D9"/>
+    <LinearGradientBrush x:Key="ComboBox2MouseOverBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFF8FBFE" Offset="0.0" />
+        <GradientStop Color="#FFEDF2FA" Offset="0.49" />
+        <GradientStop Color="#FFD7E4F4" Offset="0.5" />
+        <GradientStop Color="#FFC1D2E8" Offset="1.0" />
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="ComboBox2PressedBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFDDE8F1" Offset="0.0" />
+        <GradientStop Color="#FFD8E4F1" Offset="0.49" />
+        <GradientStop Color="#FFCFDBEC" Offset="0.5" />
+        <GradientStop Color="#FFCFDCED" Offset="1.0" />
+    </LinearGradientBrush>
+    <SolidColorBrush x:Key="ComboBox2PressedBorderBrush" Color="#FFB5C6DA"/>
+    <SolidColorBrush x:Key="ComboBox2PressedInnerBorderBrush" Color="#FFC9D4E4"/>
+    <SolidColorBrush x:Key="ComboBox2PressedInnerBorderBrush1" Color="#FFD4DEEA"/>
+    <LinearGradientBrush x:Key="ComboBox3MouseOverBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="White" Offset="0.0" />
+        <GradientStop Color="#FFF6F9FB" Offset="0.49" />
+        <GradientStop Color="#FFEDF3F9" Offset="0.5" />
+        <GradientStop Color="#FFE5EBF4" Offset="1.0" />
+    </LinearGradientBrush>
+    <SolidColorBrush x:Key="ComboBox3MouseOverBorderBrush" Color="#FFE2E7EE"/>
+    <LinearGradientBrush x:Key="ComboBox3PressedBrush" EndPoint="0,1" StartPoint="0,0">
+        <GradientStop Color="#FFEDF1F5" Offset="0.0" />
+        <GradientStop Color="#FFF5F7F8" Offset="1.0" />
+    </LinearGradientBrush>
+    <!--ComboBox Brushes End-->
+
+    <SolidColorBrush x:Key="DataGridColumnHeaderBorderBrush" Color="White"/>
+    <SolidColorBrush x:Key="DataGridColumnHeaderBrush" Color="#FFFCFCFC"/>
+
+    <Color x:Key="IncreaseRepeatPathLight">#FF7085D1</Color>
+    <Color x:Key="IncreaseRepeatPathDark">#FF4D5678</Color>
+
+    <LinearGradientBrush x:Key="IncreaseRepeatPathBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="{StaticResource IncreaseRepeatPathDark}" Offset="0"/>
+        <GradientStop Color="{StaticResource IncreaseRepeatPathLight}" Offset="1"/>
+    </LinearGradientBrush>
+
+    <LinearGradientBrush x:Key="DecreaseRepeatPathBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="{StaticResource IncreaseRepeatPathLight}" Offset="0"/>
+        <GradientStop Color="{StaticResource IncreaseRepeatPathDark}" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="RatingFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="White" Offset="0"/>
+        <GradientStop Color="#FFFFCC00" Offset="0.766"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="RatingBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="#FFFFB300" Offset="0"/>
+        <GradientStop Color="#FF936113" Offset="1"/>
+    </LinearGradientBrush>
+    <LinearGradientBrush x:Key="RatingDefaultBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
+        <GradientStop Color="#FFC4C4C4" Offset="0"/>
+        <GradientStop Color="#FF6C6C6C" Offset="1"/>
+    </LinearGradientBrush>
+
+    <!-- Brushes Stop -->
+</ResourceDictionary>

trunk/examples/Stackanimate/Stackanimate/Assets/CoreStyles.xaml

+<ResourceDictionary
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:System="clr-namespace:System;assembly=mscorlib"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
+
+    <ResourceDictionary.MergedDictionaries>
+        <ResourceDictionary Source="Brushes.xaml"/>
+        <ResourceDictionary Source="Fonts.xaml"/>
+    </ResourceDictionary.MergedDictionaries>
+
+
+    <!-- ValidationToolTip Style-->
+    <ControlTemplate x:Key="ValidationToolTipTemplate">
+        <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
+            <Grid.RenderTransform>
+                <TranslateTransform x:Name="xform" X="-25"/>
+            </Grid.RenderTransform>
+            <VisualStateManager.VisualStateGroups>
+                <VisualStateGroup x:Name="OpenStates">
+                    <VisualStateGroup.Transitions>
+                        <VisualTransition GeneratedDuration="0"/>
+                        <VisualTransition GeneratedDuration="0:0:0.2" To="Open">
+                            <Storyboard>
+                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="xform">
+                                    <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
+                                </DoubleAnimationUsingKeyFrames>
+                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root">
+                                    <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
+                                </DoubleAnimationUsingKeyFrames>
+                            </Storyboard>
+                        </VisualTransition>
+                    </VisualStateGroup.Transitions>
+                    <VisualState x:Name="Closed">
+                        <Storyboard>
+                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root">
+                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
+                            </DoubleAnimationUsingKeyFrames>
+                        </Storyboard>
+                    </VisualState>
+                    <VisualState x:Name="Open">
+                        <Storyboard>
+                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="xform">
+                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
+                            </DoubleAnimationUsingKeyFrames>
+                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root">
+                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
+                            </DoubleAnimationUsingKeyFrames>
+                        </Storyboard>
+                    </VisualState>
+                </VisualStateGroup>
+            </VisualStateManager.VisualStateGroups>
+            <Border Background="#052A2E31" CornerRadius="5" Margin="4,4,-4,-4"/>
+            <Border Background="#152A2E31" CornerRadius="4" Margin="3,3,-3,-3"/>
+            <Border Background="#252A2E31" CornerRadius="3" Margin="2,2,-2,-2"/>
+            <Border Background="#352A2E31" CornerRadius="2" Margin="1,1,-1,-1"/>
+            <Border Background="#FFDC000C" CornerRadius="2"/>
+            <Border CornerRadius="2">
+                <TextBlock Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding (Validation.Errors)[0].ErrorContent}" UseLayoutRounding="false"/>
+            </Border>
+        </Grid>
+    </ControlTemplate>
+
+    <!-- CommonValidationToolTip Style-->
+    <ControlTemplate x:Key="CommonValidationToolTipTemplate" TargetType="ToolTip">
+        <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
+            <VisualStateManager.VisualStateGroups>
+                <VisualStateGroup x:Name="OpenStates">
+                    <VisualStateGroup.Transitions>
+                        <VisualTransition GeneratedDuration="0" />
+                        <VisualTransition GeneratedDuration="0:0:0.2" To="Open">
+                            <Storyboard>
+                                <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" To="0">
+                                    <DoubleAnimation.EasingFunction>
+                                        <BackEase Amplitude=".3" EasingMode="EaseOut" />
+                                    </DoubleAnimation.EasingFunction>
+                                </DoubleAnimation>
+                                <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1" />
+                            </Storyboard>
+                        </VisualTransition>
+                    </VisualStateGroup.Transitions>
+                    <VisualState x:Name="Closed">
+                        <Storyboard>
+                            <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0" />
+                        </Storyboard>
+                    </VisualState>
+                    <VisualState x:Name="Open">
+                        <Storyboard>
+                            <DoubleAnimation Duration="0" Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" To="0" />
+                            <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1" />
+                        </Storyboard>
+                    </VisualState>
+                </VisualStateGroup>
+            </VisualStateManager.VisualStateGroups>
+            <Grid.RenderTransform>
+                <TranslateTransform x:Name="Translation" X="-25" />
+            </Grid.RenderTransform>
+            <Border Margin="4,4,-4,-4" Background="#052A2E31" CornerRadius="5" />
+            <Border Margin="3,3,-3,-3" Background="#152A2E31" CornerRadius="4" />
+            <Border Margin="2,2,-2,-2" Background="#252A2E31" CornerRadius="3" />
+            <Border Margin="1,1,-1,-1" Background="#352A2E31" CornerRadius="2" />
+            <Border Background="#FFDC000C" CornerRadius="2">
+                <TextBlock Margin="8,4,8,4" MaxWidth="250" UseLayoutRounding="false" Foreground="#FFFFFFFF" Text="{Binding (Validation.Errors)[0].Exception.Message}" TextWrapping="Wrap" />
+            </Border>
+        </Grid>
+    </ControlTemplate>
+
+    <!-- Button Style-->
+    <Style TargetType="Button">
+        <Setter Property="Background" Value="{StaticResource NormalBrush}"/>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="Padding" Value="3"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="Button">
+                    <Grid>
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualStateGroup.Transitions>
+                                    <VisualTransition From="Normal" GeneratedDuration="0:0:0.3" To="MouseOver"/>
+                                    <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.5" To="Normal"/>
+                                    <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3" To="Pressed"/>
+                                    <VisualTransition From="Pressed" GeneratedDuration="0:0:0.5" To="MouseOver"/>
+                                </VisualStateGroup.Transitions>
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Pressed">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.5"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="FocusStates">
+                                <VisualState x:Name="Focused">
+                                    <Storyboard >
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="DefaultedBorder" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever">
+                                            <SplineDoubleKeyFrame KeyTime="0" Value="1.0"/>
+                                            <SplineDoubleKeyFrame KeyTime="0:0:1" Value="0.0"/>
+                                            <SplineDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
+
+                                        </DoubleAnimationUsingKeyFrames>
+
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="DefaultedBorderChanged" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever">
+                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.0"/>
+                                            <SplineDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
+                                            <EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
+
+                                        </DoubleAnimationUsingKeyFrames>
+
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FocusInnerVisual" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Unfocused"/>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+
+                        <Grid Margin="1">
+                            <Border x:Name="MainBorder" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
+                                <Border x:Name="InnerBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource InnerBorderBrush}" />
+                            </Border>
+                            <Border x:Name="DefaultedBorder" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Background="{StaticResource DefaultedBrush}" BorderBrush="#FF3C7FB1" Opacity="0">
+                                <Border x:Name="DefaultedInnerBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource DefaultedInnerBorderBrush}" />
+                            </Border>
+                            <Border x:Name="DefaultedBorderChanged" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Opacity="0" Background="{StaticResource DefaultedBrushChanged}" BorderBrush="{StaticResource MouseOverBorderBrush}">
+                                <Border x:Name="DefaultedInnerBorderChanged" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource DefaultedInnerBorderBrush1}" />
+                            </Border>
+                            <Border x:Name="MouseOverBorder" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Opacity="0" Background="{StaticResource MouseOverBrush}" BorderBrush="{StaticResource MouseOverBorderBrush}" >
+                                <Border x:Name="MouseOverInnerBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource MouseOverInnerBorderBrush}" />
+                            </Border>
+                            <Border x:Name="PressedBorder" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Opacity="0" Background="{StaticResource PressedBrush}" BorderBrush="{StaticResource PressedBorderBrush}">
+                                <Border x:Name="PressedInnerBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource PressedInnerBorderBrush}" />
+                            </Border>
+                            <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource DisabledBackgroundBrush}" Stroke="{StaticResource DisabledBorderBrush}" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/>
+                            <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="{StaticResource FocusedBrush}" StrokeThickness="1"/>
+                            <Rectangle x:Name="FocusInnerVisual" Margin="2" Stroke="Black" StrokeThickness="1" StrokeDashArray="1 2" Opacity="0"/>
+                        </Grid>
+
+                        <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+    </Style>
+
+    <!-- CheckBox Style-->
+    <Style TargetType="CheckBox">
+        <Setter Property="Background" Value="{StaticResource CheckBoxBrush}"/>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="VerticalContentAlignment" Value="Top"/>
+        <Setter Property="Padding" Value="4,-1,0,0"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="CheckBox">
+                    <Grid Height="13">
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualStateGroup.Transitions>
+                                    <VisualTransition From="Normal" GeneratedDuration="0:0:0.3" To="MouseOver"/>
+                                    <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3" To="Normal"/>
+                                    <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3" To="Pressed"/>
+                                    <VisualTransition From="Pressed" GeneratedDuration="0:0:0.3" To="MouseOver"/>
+                                </VisualStateGroup.Transitions>
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Pressed">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.5"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="CheckStates">
+                                <VisualStateGroup.Transitions>
+                                    <VisualTransition From="Unchecked" GeneratedDuration="0:0:0.3" To="Checked"/>
+                                    <VisualTransition From="Checked" GeneratedDuration="0:0:0.3" To="Indeterminate"/>
+                                    <VisualTransition From="Indeterminate" GeneratedDuration="0:0:0.3" To="Unchecked"/>
+                                    <VisualTransition From="Checked" GeneratedDuration="0:0:0.3" To="Unchecked"/>
+                                </VisualStateGroup.Transitions>
+                                <VisualState x:Name="Checked">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Unchecked"/>
+                                <VisualState x:Name="Indeterminate">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="IndeterminateIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="FocusStates">
+                                <VisualState x:Name="Focused">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Unfocused"/>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="ValidationStates">
+                                <VisualState x:Name="Valid"/>
+                                <VisualState x:Name="InvalidUnfocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="InvalidFocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <System:Boolean>True</System:Boolean>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+
+                        </VisualStateManager.VisualStateGroups>
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition Width="13"/>
+                            <ColumnDefinition Width="*"/>
+                        </Grid.ColumnDefinitions>
+                        <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Width="13" Height="13">
+
+                            <Border Height="13" x:Name="MainBorder" BorderThickness="1,1,1,1" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" >
+                                <Border BorderBrush="{StaticResource CheckBoxInnerBorderStrokeBrush}" BorderThickness="1" Margin="1" Background="{StaticResource CheckBoxInnerBorderBrush}"/>
+                            </Border>
+                            <Border Height="13" x:Name="MouseOverBorder" BorderThickness="1,1,1,1" BorderBrush="{StaticResource CheckBoxMouseOverBorderBrush}" Background="{StaticResource CheckBoxMouseOverBrush}" Opacity="0" >
+                                <Border BorderBrush="{StaticResource CheckBoxInnerBorderMouseOverStrokeBrush}" BorderThickness="1" Margin="1" Background="{StaticResource CheckBoxInnerBorderMouseOverBrush}"/>
+                            </Border>
+                            <Border Height="13" x:Name="PressedBorder" BorderThickness="1,1,1,1" BorderBrush="{StaticResource CheckBoxPressedBorderBrush}" Background="{StaticResource CheckBoxPressedBrush}" Opacity="0" >
+                                <Border BorderBrush="{StaticResource CheckBoxInnerBorderPressedStrokeBrush}" BorderThickness="1" Margin="1" Background="{StaticResource CheckBoxInnerBorderPressedBrush}"/>
+                            </Border>
+                            <Border x:Name="GradientBorder" Height="13" BorderThickness="2" Background="{StaticResource CheckBoxGradientBrush}" />
+                            <Rectangle x:Name="IndeterminateIcon" Height="9" Width="9" Opacity="0" Fill="{StaticResource CheckBoxIndeterminateBrush}" Stroke="{StaticResource CheckBoxIndeterminateBorderBrush}"/>
+                            <Border Height="13" x:Name="DisabledVisualElement" BorderThickness="1,1,1,1" BorderBrush="{StaticResource DisabledBorderBrush}" Background="{StaticResource DisabledBackgroundBrush}" Opacity="0" />
+
+
+                            <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="1" Margin="1" ToolTipService.PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="Collapsed">
+                                <ToolTipService.ToolTip>
+                                    <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
+                                        <ToolTip.Triggers>
+                                            <EventTrigger RoutedEvent="Canvas.Loaded">
+                                                <BeginStoryboard>
+                                                    <Storyboard>
+                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
+                                                            <DiscreteObjectKeyFrame KeyTime="0" Value="true" />
+                                                        </ObjectAnimationUsingKeyFrames>
+                                                    </Storyboard>
+                                                </BeginStoryboard>
+                                            </EventTrigger>
+                                        </ToolTip.Triggers>
+                                    </ToolTip>
+                                </ToolTipService.ToolTip>
+                                <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
+                                    <Path Data="M 1,0 L5,0 A 2,2 90 0 1 7,2 L7,6 z" Fill="#FFDC000C" Margin="0,3,0,0"/>
+                                    <Path Data="M 0,0 L2,0 L 7,5 L7,7" Fill="#ffffff" Margin="0,3,0,0"/>
+                                </Grid>
+                            </Border>
+                            <Path x:Name="CheckIcon" Data="M4.875,10.5 L6.75,14.625 L10.290659,4.2101288" Height="8.038" Stretch="Fill" Stroke="{StaticResource GlyphBrush}" UseLayoutRounding="False" Width="7.907" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="2" StrokeEndLineCap="Triangle" Opacity="0"/>
+                        </Grid>
+                        <Rectangle x:Name="ContentFocusVisualElement" Stroke="#60000000" StrokeThickness="1" StrokeDashArray="1 2" Grid.Column="1" Margin="2,0,0,0" Opacity="0"/>
+                        <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+    </Style>
+
+    <!--ControlLabel Style-->
+    <Style x:Key="ControlLabelStyle" TargetType="TextBlock">
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="11"/>
+        <Setter Property="Foreground" Value="DarkGray"/>
+    </Style>
+
+    <!--ComboBox Style-->
+    <Style TargetType="ComboBox">
+        <Setter Property="Padding" Value="6,2,25,2"/>
+        <Setter Property="Background" Value="{StaticResource NormalBrush}"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="TabNavigation" Value="Once"/>
+        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
+        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="ComboBox">
+                    <Grid>
+                        <Grid.Resources>
+                            <Style x:Name="comboToggleStyle" TargetType="ToggleButton">
+                                <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+                                <Setter Property="Background" Value="{StaticResource NormalBrush}"/>
+                                <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}"/>
+                                <Setter Property="BorderThickness" Value="1"/>
+                                <Setter Property="Padding" Value="3"/>
+                                <Setter Property="Template">
+                                    <Setter.Value>
+                                        <ControlTemplate TargetType="ToggleButton">
+                                            <Grid>
+                                                <VisualStateManager.VisualStateGroups>
+                                                    <VisualStateGroup x:Name="CommonStates">
+                                                        <VisualState x:Name="Normal"/>
+                                                        <VisualState x:Name="MouseOver">
+                                                            <Storyboard>
+                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                                                </DoubleAnimationUsingKeyFrames>
+                                                            </Storyboard>
+                                                        </VisualState>
+                                                        <VisualState x:Name="Pressed">
+                                                            <Storyboard/>
+                                                        </VisualState>
+                                                        <VisualState x:Name="Disabled">
+                                                            <Storyboard>
+                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                                                </DoubleAnimationUsingKeyFrames>
+                                                            </Storyboard>
+                                                        </VisualState>
+                                                    </VisualStateGroup>
+                                                    <VisualStateGroup x:Name="CheckStates">
+                                                        <VisualState x:Name="Checked">
+                                                            <Storyboard>
+                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                                                </DoubleAnimationUsingKeyFrames>
+                                                            </Storyboard>
+                                                        </VisualState>
+                                                        <VisualState x:Name="Unchecked"/>
+                                                    </VisualStateGroup>
+                                                    <VisualStateGroup x:Name="FocusStates">
+                                                        <VisualState x:Name="Focused">
+                                                            <Storyboard/>
+                                                        </VisualState>
+                                                        <VisualState x:Name="Unfocused"/>
+                                                    </VisualStateGroup>
+                                                </VisualStateManager.VisualStateGroups>
+
+                                                <Border x:Name="MainBorder" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
+                                                    <Border x:Name="InnerBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource InnerBorderBrush}" />
+                                                </Border>
+                                                <Border x:Name="MouseOverBorder" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Opacity="0" Background="{StaticResource MouseOverBrush}" BorderBrush="{StaticResource MouseOverBorderBrush}" >
+                                                    <Border x:Name="MouseOverInnerBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource MouseOverInnerBorderBrush}" />
+                                                </Border>
+                                                <Border x:Name="PressedBorder" CornerRadius="3,3,3,3" BorderThickness="1,1,1,1" Opacity="0" Background="{StaticResource PressedBrush}" BorderBrush="{StaticResource PressedBorderBrush}">
+                                                    <Border x:Name="PressedInnerBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource PressedInnerBorderBrush}" />
+                                                </Border>
+
+                                                <Rectangle x:Name="DisabledVisualElement" Fill="{StaticResource DisabledBackgroundBrush}" Stroke="{StaticResource DisabledBorderBrush}" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/>
+                                                <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+
+                                            </Grid>
+                                        </ControlTemplate>
+                                    </Setter.Value>
+                                </Setter>
+                            </Style>
+                        </Grid.Resources>
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver"/>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualElement">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value=".55"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="FocusStates">
+                                <VisualState x:Name="Focused">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Unfocused"/>
+                                <VisualState x:Name="FocusedDropDown">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="PopupBorder">
+                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="ValidationStates">
+                                <VisualState x:Name="Valid"/>
+                                <VisualState x:Name="InvalidUnfocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="InvalidFocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <System:Boolean>True</System:Boolean>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+                        <Border x:Name="ContentPresenterBorder">
+                            <Grid>
+                                <ToggleButton x:Name="DropDownToggle" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0" Style="{StaticResource comboToggleStyle}" VerticalAlignment="Stretch">
+                                    <Path x:Name="BtnArrow" Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z " HorizontalAlignment="Right" Height="4" Margin="0,0,6,0" Stretch="Uniform" Width="8">
+                                        <Path.Fill>
+                                            <SolidColorBrush x:Name="BtnArrowColor" Color="#FF333333"/>
+                                        </Path.Fill>
+                                    </Path>
+                                </ToggleButton>
+                                <ContentPresenter x:Name="ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
+                                    <TextBlock Text=" "/>
+                                </ContentPresenter>
+                            </Grid>
+                        </Border>
+                        <Rectangle x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/>
+                        <Rectangle x:Name="FocusVisualElement" Margin="2" Stroke="#60000000" StrokeThickness="1" StrokeDashArray="1 2" Opacity="0"/>
+                        <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="1" CornerRadius="3" Visibility="Collapsed">
+                            <ToolTipService.ToolTip>
+                                <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
+                                    <ToolTip.Triggers>
+                                        <EventTrigger RoutedEvent="Canvas.Loaded">
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
+                                                        <DiscreteObjectKeyFrame KeyTime="0">
+                                                            <DiscreteObjectKeyFrame.Value>
+                                                                <System:Boolean>true</System:Boolean>
+                                                            </DiscreteObjectKeyFrame.Value>
+                                                        </DiscreteObjectKeyFrame>
+                                                    </ObjectAnimationUsingKeyFrames>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </EventTrigger>
+                                    </ToolTip.Triggers>
+                                </ToolTip>
+                            </ToolTipService.ToolTip>
+                            <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12">
+                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="1,3,0,0"/>
+                                <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="1,3,0,0"/>
+                            </Grid>
+                        </Border>
+                        <Popup x:Name="Popup">
+                            <Border x:Name="PopupBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" HorizontalAlignment="Stretch" Height="Auto">
+                                <Border.Effect>
+                                    <DropShadowEffect ShadowDepth="3" Opacity="0.5"/>
+                                </Border.Effect>
+                                <Border.Background>
+                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
+                                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
+                                        <GradientStop Color="#FFFEFEFE" Offset="1"/>
+                                    </LinearGradientBrush>
+                                </Border.Background>
+                                <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Padding="1">
+                                    <ItemsPresenter/>
+                                </ScrollViewer>
+                            </Border>
+                        </Popup>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+    </Style>
+
+    <!--ComboBoxItem Style-->
+    <Style TargetType="ComboBoxItem">
+        <Setter Property="Padding" Value="3"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="VerticalContentAlignment" Value="Top"/>
+        <Setter Property="Background" Value="Transparent"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="TabNavigation" Value="Local"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="ComboBoxItem">
+                    <Grid Background="{TemplateBinding Background}">
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MainBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter">
+                                            <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="SelectionStates">
+                                <VisualState x:Name="Unselected"/>
+                                <VisualState x:Name="Selected">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MainBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="FocusStates">
+                                <VisualState x:Name="Focused">
+                                    <Storyboard/>
+                                </VisualState>
+                                <VisualState x:Name="Unfocused"/>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+                        <Border x:Name="MainBorder" CornerRadius="1,1,1,1" BorderThickness="1,1,1,1" Background="{StaticResource ComboBoxItemMouseOverBrush}" Opacity="0" />
+                        <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
+                        <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="#FF6DBDD1" StrokeThickness="1" Visibility="Collapsed"/>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+    </Style>
+
+    <!-- HyperlinkButton Style-->
+    <Style TargetType="HyperlinkButton">
+        <Setter Property="Foreground" Value="#FF76A7E8"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="Padding" Value="2,0,2,0"/>
+        <Setter Property="Cursor" Value="Hand"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="VerticalContentAlignment" Value="Top"/>
+        <Setter Property="Background" Value="Transparent"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="HyperlinkButton">
+                    <Grid Background="{TemplateBinding Background}" Cursor="{TemplateBinding Cursor}" Margin="0,0,0,-5">
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver">
+                                    <Storyboard/>
+                                </VisualState>
+                                <VisualState x:Name="Pressed">
+                                    <Storyboard/>
+                                </VisualState>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledOverlay">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisaledUnderlineTextBlockOverlay">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="FocusStates">
+                                <VisualState x:Name="Focused">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
+                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Unfocused"/>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+                        <TextBlock x:Name="UnderlineTextBlock" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Text="{TemplateBinding Content}" TextDecorations="Underline" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{TemplateBinding Foreground}" Margin="2,0,0,0"/>
+                        <TextBlock x:Name="DisaledUnderlineTextBlockOverlay" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Text="{TemplateBinding Content}" TextDecorations="Underline" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{StaticResource DisabledForegroundBrush}" Visibility="Collapsed" Margin="0,0,0,6"/>
+                        <TextBlock x:Name="DisabledOverlay" Foreground="{StaticResource DisabledForegroundBrush}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Content}" Visibility="Collapsed" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Canvas.ZIndex="1"/>
+                        <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+                        <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" Stroke="#60000000" StrokeThickness="1"  StrokeDashArray="1 2"/>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+    </Style>
+
+    <!-- ListBox Style-->
+    <Style TargetType="ListBox">
+        <Setter Property="Padding" Value="1"/>
+        <Setter Property="Background" Value="{StaticResource ControlBackgroundBrush}"/>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="VerticalContentAlignment" Value="Top"/>
+        <Setter Property="IsTabStop" Value="False"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="TabNavigation" Value="Once"/>
+        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
+        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
+        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="ListBox">
+                    <Grid>
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="ValidationStates">
+                                <VisualState x:Name="Valid"/>
+                                <VisualState x:Name="InvalidUnfocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="InvalidFocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <System:Boolean>True</System:Boolean>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
+                            <ScrollViewer x:Name="ScrollViewer" BorderBrush="Transparent" BorderThickness="0" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}">
+                                <ItemsPresenter/>
+                            </ScrollViewer>
+                        </Border>
+                        <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="{TemplateBinding BorderThickness}" Visibility="Collapsed">
+                            <ToolTipService.ToolTip>
+                                <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
+                                    <ToolTip.Triggers>
+                                        <EventTrigger RoutedEvent="Canvas.Loaded">
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
+                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="true" />
+                                                    </ObjectAnimationUsingKeyFrames>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </EventTrigger>
+                                    </ToolTip.Triggers>
+                                </ToolTip>
+                            </ToolTipService.ToolTip>
+                            <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
+                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="-1,3,0,0"/>
+                                <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="-1,3,0,0"/>
+                            </Grid>
+                        </Border>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+    </Style>
+
+    <!-- ListBoxItem Style -->
+    <Style TargetType="ListBoxItem">
+        <Setter Property="Padding" Value="3"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="VerticalContentAlignment" Value="Top"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="TabNavigation" Value="Local"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="ListBoxItem">
+                    <Grid Background="{TemplateBinding Background}">
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.5"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="SelectionStates">
+                                <VisualState x:Name="Unselected"/>
+                                <VisualState x:Name="Selected">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SelectedBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="FocusStates">
+                                <VisualState x:Name="Focused">
+                                    <Storyboard/>
+                                </VisualState>
+                                <VisualState x:Name="Unfocused"/>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+                        <Border x:Name="MouseOverBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource ListItemMouseOverBorderBrush}" Opacity="0" Background="{StaticResource ListItemMouseOverBrush}" >
+                            <Border BorderThickness="1" CornerRadius="1">
+                                <Border.BorderBrush>
+                                    <SolidColorBrush Color="{StaticResource WhiteColor}"/>
+                                </Border.BorderBrush>
+                            </Border>
+                        </Border>
+                        <Border x:Name="SelectedBorder" CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="{StaticResource ListItemSelectedBorderBrush}" Opacity="0" Background="{StaticResource ListItemSelectedBrush}" >
+                            <Border BorderBrush="{StaticResource ListItemSelectedInnerBorderBrush}" BorderThickness="1"/>
+                        </Border>
+
+                        <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
+                        <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="#FF6DBDD1" StrokeThickness="1" Visibility="Collapsed"/>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+    </Style>
+
+    <!--PasswordBox Style-->
+    <Style TargetType="PasswordBox">
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="Background">
+            <Setter.Value>
+                <SolidColorBrush Color="{StaticResource WhiteColor}"/>
+            </Setter.Value>
+        </Setter>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="Padding" Value="2"/>
+        <Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="PasswordBox">
+                    <Grid x:Name="RootElement">
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualStateGroup.Transitions>
+                                    <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.5" To="Normal"/>
+                                    <VisualTransition From="Normal" GeneratedDuration="0:0:0.3" To="MouseOver"/>
+                                </VisualStateGroup.Transitions>
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement">
+                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.5"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="FocusStates">
+                                <VisualStateGroup.Transitions>
+                                    <VisualTransition From="Unfocused" GeneratedDuration="0:0:0.3" To="Focused"/>
+                                    <VisualTransition From="Focused" GeneratedDuration="0:0:0.5" To="Unfocused"/>
+                                </VisualStateGroup.Transitions>
+                                <VisualState x:Name="Focused">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
+                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Unfocused">
+                                    <Storyboard/>
+                                </VisualState>
+                            </VisualStateGroup>
+                            <VisualStateGroup x:Name="ValidationStates">
+                                <VisualState x:Name="Valid"/>
+                                <VisualState x:Name="InvalidUnfocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="InvalidFocused">
+                                    <Storyboard>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
+                                            <DiscreteObjectKeyFrame KeyTime="0">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <System:Boolean>True</System:Boolean>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+                        <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="1" Opacity="1" />
+                        <Border x:Name="DisabledVisualElement" BorderBrush="#A5F7F7F7" BorderThickness="{TemplateBinding BorderThickness}" Background="#A5F7F7F7" IsHitTestVisible="False" Opacity="0" CornerRadius="1"/>
+                        <Border x:Name="MouseOverBorder" BorderThickness="1,1,1,1" BorderBrush="{StaticResource TextBoxMouseOverBorderBrush}" CornerRadius="1,1,1,1" Opacity="0" />
+                        <Border x:Name="FocusVisualElement" BorderBrush="{StaticResource TextBoxMouseOverBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" IsHitTestVisible="False" CornerRadius="1" Opacity="0"/>
+                        <Border>
+                            <Border x:Name="ContentElement" Margin="{TemplateBinding Padding}"/>
+                        </Border>
+
+                        <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="1" CornerRadius="1" Visibility="Collapsed">
+                            <ToolTipService.ToolTip>
+                                <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
+                                    <ToolTip.Triggers>
+                                        <EventTrigger RoutedEvent="Canvas.Loaded">
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
+                                                        <DiscreteObjectKeyFrame KeyTime="0">
+                                                            <DiscreteObjectKeyFrame.Value>
+                                                                <System:Boolean>true</System:Boolean>
+                                                            </DiscreteObjectKeyFrame.Value>
+                                                        </DiscreteObjectKeyFrame>
+                                                    </ObjectAnimationUsingKeyFrames>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </EventTrigger>
+                                    </ToolTip.Triggers>
+                                </ToolTip>
+                            </ToolTipService.ToolTip>
+                            <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12">
+                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="1,3,0,0"/>
+                                <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="1,3,0,0"/>
+                            </Grid>
+                        </Border>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+    </Style>
+
+    <!-- ProgressBar Style-->
+    <Style TargetType="ProgressBar">
+        <Setter Property="Foreground" Value="#FF027DB8"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="Maximum" Value="100"/>
+        <Setter Property="IsTabStop" Value="False"/>
+        <Setter Property="BorderBrush" Value="#FFB2B2B2"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="ProgressBar">
+                    <Grid x:Name="Root">
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualState x:Name="Determinate">
+                                    <Storyboard>
+                                        <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.OpacityMask).(RadialGradientBrush.Center)" Storyboard.TargetName="DefiniteGlow" RepeatBehavior="Forever">
+                                            <EasingPointKeyFrame KeyTime="0:0:0.4" Value="-0.343,0.458"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:0.58" Value="-0.053,0.471"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:0.76" Value="0.491,0.529"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:0.94" Value="0.885,0.526"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.12" Value="1.239,0.466"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.3" Value="1.515,0.466"/>
+                                        </PointAnimationUsingKeyFrames>
+                                        <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.OpacityMask).(RadialGradientBrush.GradientOrigin)" Storyboard.TargetName="DefiniteGlow" RepeatBehavior="Forever">
+                                            <EasingPointKeyFrame KeyTime="0:0:0.4" Value="-0.343,-0.486"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:0.58" Value="-0.053,-0.473"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:0.76" Value="0.491,-0.415"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:0.94" Value="0.885,-0.418"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.12" Value="1.239,-0.478"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.3" Value="1.515,-0.478"/>
+                                        </PointAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Indeterminate">
+                                    <Storyboard RepeatBehavior="Forever">
+                                        <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="IndeterminateRoot">
+                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Visible</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                        <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="DeterminateRoot">
+                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
+                                                <DiscreteObjectKeyFrame.Value>
+                                                    <Visibility>Collapsed</Visibility>
+                                                </DiscreteObjectKeyFrame.Value>
+                                            </DiscreteObjectKeyFrame>
+                                        </ObjectAnimationUsingKeyFrames>
+                                        <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.OpacityMask).(RadialGradientBrush.Center)" Storyboard.TargetName="IndeterminateBorder">
+                                            <EasingPointKeyFrame KeyTime="0:0:0.4" Value="-0.343,0.458"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.0" Value="-0.053,0.471"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.6" Value="0.491,0.529"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:2.2" Value="0.885,0.526"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:2.8" Value="1.239,0.466"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:3.4" Value="1.515,0.466"/>
+                                        </PointAnimationUsingKeyFrames>
+                                        <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.OpacityMask).(RadialGradientBrush.GradientOrigin)" Storyboard.TargetName="IndeterminateBorder">
+                                            <EasingPointKeyFrame KeyTime="0:0:0.4" Value="-0.343,-0.486"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.0" Value="-0.053,-0.473"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:1.6" Value="0.491,-0.415"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:2.2" Value="0.885,-0.418"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:2.8" Value="1.239,-0.478"/>
+                                            <EasingPointKeyFrame KeyTime="0:0:3.4" Value="1.515,-0.478"/>
+                                        </PointAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                            </VisualStateGroup>
+                        </VisualStateManager.VisualStateGroups>
+                        <Border x:Name="ProgressBarTrack" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="1">
+                            <Border.OpacityMask>
+                                <LinearGradientBrush EndPoint="0.986,0.5" StartPoint="-0.003,0.5">
+                                    <GradientStop Color="Black" Offset="0"/>
+                                    <GradientStop Color="White" Offset="1"/>
+                                    <GradientStop Color="#FF787878" Offset="0.478"/>
+                                    <GradientStop Color="#FF202020" Offset="0.215"/>
+                                    <GradientStop Color="#FFBDBDBD" Offset="0.779"/>
+                                </LinearGradientBrush>
+                            </Border.OpacityMask>
+                            <Border x:Name="GradientBorder" BorderThickness="1" Background="{StaticResource ProgressBarTrackBrush}" BorderBrush="{StaticResource ProgressBarTrackInnerBorderBrush}">
+                                <Border x:Name="BottomGlowBorder" Background="{StaticResource ProgressBarBottomGlowBrush}"/>
+                            </Border>
+                        </Border>
+                        <Grid x:Name="ProgressBarRootGrid">
+                            <Grid x:Name="DeterminateRoot">
+                                <Grid x:Name="ProgressBarIndicator" HorizontalAlignment="Left" Margin="{TemplateBinding BorderThickness}">
+                                    <Border  BorderThickness="1" BorderBrush="{StaticResource ProgressBarIndicatorBorderBrush}" Background="{StaticResource ProgressBarIndicatorBrush}" >
+                                        <Grid>
+                                            <Border x:Name="DefiniteGlow">
+                                                <Border.Background>
+                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
+                                                        <GradientStop Color="#FF6DED75" Offset="0"/>
+                                                        <GradientStop Color="White" Offset="1"/>
+                                                    </LinearGradientBrush>
+                                                </Border.Background>
+                                                <Border.OpacityMask>
+                                                    <RadialGradientBrush RadiusY="1.09" GradientOrigin="-0.502,-0.478" Center="-0.502,0.466" RadiusX="0.205">
+                                                        <GradientStop Color="Black"/>
+                                                        <GradientStop Color="Transparent" Offset="1"/>
+                                                    </RadialGradientBrush>
+                                                </Border.OpacityMask>
+                                            </Border>
+                                            <Border Background="{StaticResource ProgressBarBottomGlowBrush}"/>
+                                        </Grid>
+                                    </Border>
+                                </Grid>
+                            </Grid>
+                            <Grid x:Name="IndeterminateRoot" Margin="-1,0">
+                                <Border Margin="1" x:Name="IndeterminateBorder" Background="{StaticResource ProgressBarIndeterminateBrush}" >
+                                    <Border.OpacityMask>
+                                        <RadialGradientBrush RadiusY="0.719" GradientOrigin="-0.502,-0.478" Center="-0.502,0.466" RadiusX="0.368">
+                                            <GradientStop Color="Black"/>
+                                            <GradientStop Color="Transparent" Offset="1"/>
+                                        </RadialGradientBrush>
+                                    </Border.OpacityMask>
+                                </Border>
+                            </Grid>
+                        </Grid>
+                        <Border x:Name="ShineBorder" Margin="1,1,1,0" Background="{StaticResource ProgressBarShineBrush}"/>
+                    </Grid>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+        <Setter Property="Background" Value="{x:Null}"/>
+    </Style>
+
+    <!-- RadioButton Style-->
+    <Style TargetType="RadioButton">
+        <Setter Property="Background" Value="{StaticResource CheckBoxBrush}"/>
+        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
+        <Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
+        <Setter Property="FontSize" Value="13"/>
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
+        <Setter Property="VerticalContentAlignment" Value="Top"/>
+        <Setter Property="Padding" Value="4,-1,0,0"/>
+        <Setter Property="BorderThickness" Value="1"/>
+        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}"/>
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="RadioButton">
+                    <Grid>
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition Width="15"/>
+                            <ColumnDefinition Width="*"/>
+                        </Grid.ColumnDefinitions>
+                        <VisualStateManager.VisualStateGroups>
+                            <VisualStateGroup x:Name="CommonStates">
+                                <VisualState x:Name="Normal"/>
+                                <VisualState x:Name="MouseOver">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MouseOverInnerBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Pressed">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PressedInnerBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.0"/>
+                                        </DoubleAnimationUsingKeyFrames>
+                                    </Storyboard>
+                                </VisualState>
+                                <VisualState x:Name="Disabled">
+                                    <Storyboard>
+                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">