Merge
authorPAMPHILE Jonathan <pamphile@efrei.fr>
Wed, 14 Oct 2009 13:44:25 +0200
changeset 146 dd8ed4d3beb6
parent 145 42cf4dbc473b (diff)
parent 144 843f65b41290 (current diff)
child 147 1a5da89daee9
Merge
src/FingersDance.ActionFactory/ActionGenerator.cs
src/FingersDance.ActionFactory/FingersDance.ActionFactory.csproj
src/FingersDance.Actions/FingersDance.Actions.csproj
src/FingersDance.Control.Player/FingersDance.Control.Player.csproj
src/FingersDance.Control.Player/UserControlPlayer.xaml
src/FingersDance.Control.Player/UserControlPlayer.xaml.cs
src/FingersDance.Control.SessionInput/FingersDance.Control.SessionInput.csproj
src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml
src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs
src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
src/FingersDance.Data/FingersDance.Data.csproj
src/FingersDance.ViewModel/AnnotationViewModel.cs
src/FingersDance.ViewModel/CuttingViewModel.cs
src/FingersDance.ViewModel/FingersDance.ViewModels.csproj
src/FingersDance.Views/FingersDance.Views.csproj
src/FingersDance.Views/TimelineAnnotationView.xaml
src/FingersDance.Views/TimelineAnnotationView.xaml.cs
src/FingersDance.Views/TimelineView.xaml
src/FingersDance.Views/TimelineView.xaml.cs
src/FingersDance/FingersDance.csproj
src/FingersDance/MainSurfaceWindow.xaml
src/FingersDance/MainSurfaceWindow.xaml.cs
--- a/src/FingersDance.ActionFactory/ActionGenerator.cs	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.ActionFactory/ActionGenerator.cs	Wed Oct 14 13:44:25 2009 +0200
@@ -17,7 +17,7 @@
             actionDict.Add("ActionOpenMedia", typeof(FingersDance.Actions.ActionOpenMedia));
             actionDict.Add("ActionStopMedia", typeof(FingersDance.Actions.ActionStopMedia));
 
-            //actionDict.Add("ActionStartOrEndAnnotation", typeof(FingersDance.Actions.ActionStartOrEndAnnotation));
+            actionDict.Add("ActionStartOrEndAnnotation", typeof(FingersDance.Actions.ActionStartOrEndAnnotation));
             actionDict.Add("ActionAddAnnotation", typeof(FingersDance.Actions.ActionAddAnnotation));
         }
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Actions/ActionStartOrEndAnnotation.cs	Wed Oct 14 13:44:25 2009 +0200
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using FingersDance.Control.TimeLine;
+
+namespace FingersDance.Actions
+{
+    public class ActionStartOrEndAnnotation : FingersDance.Actions.ActionBase
+    {
+        
+        private string _Text = "";
+        private UserControlTimeLine myTimeline;
+
+        public ActionStartOrEndAnnotation()
+        {
+            
+        }
+
+        public ActionStartOrEndAnnotation(string text)
+        {
+            _Text = text;
+        }
+
+        public ActionStartOrEndAnnotation(UserControlTimeLine uct)
+        {
+            myTimeline = uct;
+        }
+
+        public void Execute()
+        {
+            if (myTimeline != null)
+                myTimeline.startOrEndAnnotation();
+        }
+    }
+}
+
--- a/src/FingersDance.Actions/FingersDance.Actions.csproj	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Actions/FingersDance.Actions.csproj	Wed Oct 14 13:44:25 2009 +0200
@@ -82,6 +82,7 @@
     <Compile Include="ActionOpenMedia.cs" />
     <Compile Include="ActionPlayMedia.cs" />
     <Compile Include="ActionShowMessage.cs" />
+    <Compile Include="ActionStartOrEndAnnotation.cs" />
     <Compile Include="ActionStopMedia.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <EmbeddedResource Include="Properties\Resources.resx">
--- a/src/FingersDance.Control.Close/FingersDance.Control.Close.csproj	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Control.Close/FingersDance.Control.Close.csproj	Wed Oct 14 13:44:25 2009 +0200
@@ -104,9 +104,6 @@
       <DesignTimeSharedInput>True</DesignTimeSharedInput>
       <DependentUpon>Settings.settings</DependentUpon>
     </Compile>
-    <Compile Include="SurfaceWindow1.xaml.cs">
-      <DependentUpon>SurfaceWindow1.xaml</DependentUpon>
-    </Compile>
     <AppDesigner Include="Properties\" />
   </ItemGroup>
   <ItemGroup>
@@ -121,11 +118,5 @@
   <ItemGroup>
     <Resource Include="Resources\WindowBackground.jpg" />
   </ItemGroup>
-  <ItemGroup>
-    <Page Include="SurfaceWindow1.xaml">
-      <Generator>MSBuild:Compile</Generator>
-      <SubType>Designer</SubType>
-    </Page>
-  </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
 </Project>
\ No newline at end of file
--- a/src/FingersDance.Control.Close/SurfaceWindow1.xaml	Tue Oct 13 19:36:04 2009 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-<s:SurfaceWindow x:Class="FingersDance.Control.Close.SurfaceWindow1"
-    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-    xmlns:s="http://schemas.microsoft.com/surface/2008"
-    Title="FingersDance.Control.Close"
-    >
-  <s:SurfaceWindow.Resources>
-    <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
-  </s:SurfaceWindow.Resources>
-
-  <Grid Background="{StaticResource WindowBackground}" >
-
-  </Grid>
-</s:SurfaceWindow>
--- a/src/FingersDance.Control.Close/SurfaceWindow1.xaml.cs	Tue Oct 13 19:36:04 2009 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-using System.Windows.Threading;
-using Microsoft.Surface;
-using Microsoft.Surface.Presentation;
-using Microsoft.Surface.Presentation.Controls;
-
-namespace FingersDance.Control.Close
-{
-    /// <summary>
-    /// Interaction logic for SurfaceWindow1.xaml
-    /// </summary>
-    public partial class SurfaceWindow1 : SurfaceWindow
-    {
-        /// <summary>
-        /// Default constructor.
-        /// </summary>
-        public SurfaceWindow1()
-        {
-            InitializeComponent();
-
-            // Add handlers for Application activation events
-            AddActivationHandlers();
-        }
-
-
-        /// <summary>
-        /// Occurs when the window is about to close. 
-        /// </summary>
-        /// <param name="e"></param>
-        protected override void OnClosed(EventArgs e)
-        {
-            base.OnClosed(e);
-
-            // Remove handlers for Application activation events
-            RemoveActivationHandlers();
-        }
-
-        /// <summary>
-        /// Adds handlers for Application activation events.
-        /// </summary>
-        private void AddActivationHandlers()
-        {
-            // Subscribe to surface application activation events
-            ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
-            ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
-            ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
-        }
-
-        /// <summary>
-        /// Removes handlers for Application activation events.
-        /// </summary>
-        private void RemoveActivationHandlers()
-        {
-            // Unsubscribe from surface application activation events
-            ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
-            ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
-            ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
-        }
-
-        /// <summary>
-        /// This is called when application has been activated.
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void OnApplicationActivated(object sender, EventArgs e)
-        {
-            //TODO: enable audio, animations here
-        }
-
-        /// <summary>
-        /// This is called when application is in preview mode.
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void OnApplicationPreviewed(object sender, EventArgs e)
-        {
-            //TODO: Disable audio here if it is enabled
-
-            //TODO: optionally enable animations here
-        }
-
-        /// <summary>
-        ///  This is called when application has been deactivated.
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void OnApplicationDeactivated(object sender, EventArgs e)
-        {
-            //TODO: disable audio, animations here
-        }
-    }
-}
\ No newline at end of file
--- a/src/FingersDance.Control.Close/UserControlClose.xaml	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Control.Close/UserControlClose.xaml	Wed Oct 14 13:44:25 2009 +0200
@@ -5,12 +5,16 @@
 	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 	mc:Ignorable="d"
 	x:Class="FingersDance.Control.Close.UserControlClose"
-	x:Name="UserControl"
-	Width="359.284" Height="210.955" xmlns:Custom="http://schemas.microsoft.com/surface/2008" BorderBrush="White">
-
-	<Grid x:Name="LayoutRoot" Background="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}">
-		<Label Margin="88.06,56.717,76.029,0" VerticalAlignment="Top" Content="Estes-vous sure de vouloir quitter ?" Height="42.363" x:Name="LabelAlert" Foreground="White"/>
-		<Custom:SurfaceButton VerticalAlignment="Bottom" Content="Oui" Margin="81.604,0,0,27.224" x:Name="SurfaceButtonOK" HorizontalAlignment="Left" Width="85.754" ContactDown="SurfaceButtonOK_ContactDown" Click="SurfaceButtonOK_Click"/>
-		<Custom:SurfaceButton HorizontalAlignment="Right" VerticalAlignment="Bottom" Content="Non" Margin="0,0,76.029,27.224" Width="85.754" x:Name="SurfaceButtonNO" ContactDown="SurfaceButtonNO_ContactDown" Click="SurfaceButtonNO_Click"/>
+	Width="Auto" Height="90" MinWidth="250" xmlns:Custom="http://schemas.microsoft.com/surface/2008" BorderBrush="White" x:Name="myUC">
+    <UserControl.Background>
+        <SolidColorBrush Color="Black" Opacity="0.8"/>
+    </UserControl.Background>
+	<Grid x:Name="LayoutRoot" >
+        <TextBlock Margin="10,5,10,0" Text="{Binding Path=Question, ElementName=myUC}" Foreground="White"
+               FontSize="18" TextWrapping="Wrap"></TextBlock>
+        <Custom:SurfaceButton x:Name="SurfaceButtonOK" TextBlock.FontSize="16" Content="Oui" Foreground="White" VerticalAlignment="Top"
+                              Margin="35,55,0,0" HorizontalAlignment="Left" Width="85" ContactDown="SurfaceButtonOK_ContactDown" Click="SurfaceButtonOK_Click" Height="26" />
+		<Custom:SurfaceButton x:Name="SurfaceButtonNO" TextBlock.FontSize="16" Content="Non" Foreground="White" VerticalAlignment="Top" 
+                              Margin="0,55,28,0" HorizontalAlignment="Right" Width="85" ContactDown="SurfaceButtonNO_ContactDown" Click="SurfaceButtonNO_Click" Height="26" />
 	</Grid>
 </UserControl>
\ No newline at end of file
--- a/src/FingersDance.Control.Close/UserControlClose.xaml.cs	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Control.Close/UserControlClose.xaml.cs	Wed Oct 14 13:44:25 2009 +0200
@@ -10,53 +10,87 @@
 
 namespace FingersDance.Control.Close
 {
+    public class ConfirmEventArgs : EventArgs
+    {
+        public Boolean Confirmed;
+        public int PanelNumber = 0;
+
+        public ConfirmEventArgs(Boolean b)
+        {
+            Confirmed = b;
+        }
+        public ConfirmEventArgs(Boolean b, int panelNum)
+        {
+            Confirmed = b;
+            PanelNumber = panelNum;
+        }
+    }
+
 	public partial class UserControlClose
 	{
-        public event EventHandler EH_SurfaceButtonClose_ContactDown;
+        public event EventHandler<ConfirmEventArgs> ConfirmYesOrNo; 
         public bool close;
         public int Id = 0;
 
-		public UserControlClose(int closeid)
+        public static readonly DependencyProperty QuestionProperty = DependencyProperty.Register("Question", typeof(String), typeof(UserControlClose));
+
+		public UserControlClose()
 		{
-            Id = closeid;
 			this.InitializeComponent();
 
 			// Insert code required on object creation below this point.
-		}
+        }
+
+
+        public UserControlClose(int closeid, String sentence)
+        {
+            this.InitializeComponent();
+
+            Id = closeid;
+            Question = sentence;
+        }
+
+
+        public String Question
+        {
+            get { return (String)GetValue(QuestionProperty); }
+            set { SetValue(QuestionProperty, value); }
+        }
+
 
         private void SurfaceButtonOK_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
         {
-            if (EH_SurfaceButtonClose_ContactDown != null)
+            if (ConfirmYesOrNo != null)
             {
                 close = true;
-                EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
+                ConfirmYesOrNo(this, new ConfirmEventArgs(true, Id));
+            }
+        }
+
+        private void SurfaceButtonOK_Click(object sender, RoutedEventArgs e)
+        {
+            if (ConfirmYesOrNo != null)
+            {
+                close = true;
+                ConfirmYesOrNo(this, new ConfirmEventArgs(true, Id));
             }
         }
 
         private void SurfaceButtonNO_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
         {
-            if (EH_SurfaceButtonClose_ContactDown != null)
+            if (ConfirmYesOrNo != null)
             {
                 close = false;
-                EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
+                ConfirmYesOrNo(this, new ConfirmEventArgs(false, Id));
             }
         }
 
         private void SurfaceButtonNO_Click(object sender, RoutedEventArgs e)
         {
-            if (EH_SurfaceButtonClose_ContactDown != null)
+            if (ConfirmYesOrNo != null)
             {
                 close = false;
-                EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
-            }
-        }
-
-        private void SurfaceButtonOK_Click(object sender, RoutedEventArgs e)
-        {
-            if (EH_SurfaceButtonClose_ContactDown != null)
-            {
-                close = true;
-                EH_SurfaceButtonClose_ContactDown(this, new EventArgs());
+                ConfirmYesOrNo(this, new ConfirmEventArgs(false, Id));
             }
         }
 	}
--- a/src/FingersDance.Control.TimeLine/FingersDance.Control.TimeLine.csproj	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Control.TimeLine/FingersDance.Control.TimeLine.csproj	Wed Oct 14 13:44:25 2009 +0200
@@ -73,7 +73,6 @@
     <Reference Include="WindowsBase" />
     <Reference Include="PresentationCore" />
     <Reference Include="PresentationFramework" />
-    <Reference Include="Microsoft.Surface" />
     <Reference Include="Microsoft.Surface.Presentation" />
     <Reference Include="Microsoft.Surface.Presentation.Generic" />
     <Resource Include="FingersDance.Control.TimeLine.Ressources.xaml">
@@ -125,6 +124,10 @@
     <Resource Include="Resources\WindowBackground.jpg" />
   </ItemGroup>
   <ItemGroup>
+    <ProjectReference Include="..\FingersDance.Control.Close\FingersDance.Control.Close.csproj">
+      <Project>{D579FDB5-D412-4797-A0FF-C5873AE08BB8}</Project>
+      <Name>FingersDance.Control.Close</Name>
+    </ProjectReference>
     <ProjectReference Include="..\FingersDance.Data\FingersDance.Data.csproj">
       <Project>{EAF384DB-2AE4-4132-839D-60F9DAFDEAD8}</Project>
       <Name>FingersDance.Data</Name>
@@ -138,5 +141,8 @@
       <Name>FingersDance.Views</Name>
     </ProjectReference>
   </ItemGroup>
+  <ItemGroup>
+    <WCFMetadata Include="Service References\" />
+  </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
 </Project>
\ No newline at end of file
--- a/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml	Wed Oct 14 13:44:25 2009 +0200
@@ -5,781 +5,783 @@
 	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 	mc:Ignorable="d"
     xmlns:vw="clr-namespace:FingersDance.Views;assembly=FingersDance.Views"
+    xmlns:popup="clr-namespace:FingersDance.Control.Close;assembly=FingersDance.Control.Close"
 	xmlns:Custom="http://schemas.microsoft.com/surface/2008" xmlns:Microsoft_Surface_Presentation_Generic="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic"
 	x:Class="FingersDance.Control.TimeLine.UserControlTimeLine"
 	x:Name="UserControl"
 	d:DesignWidth="383" Background="{x:Null}" d:DesignHeight="33">
 
-	<UserControl.Resources>
-		<Style x:Key="FingersDance.Control.Slider" TargetType="{x:Type Custom:SurfaceSlider}">
-			<Setter Property="Background" Value="#191B2022"/>
-			<Setter Property="BorderBrush" Value="#3F040404"/>
-			<Setter Property="Foreground" Value="Black"/>
-			<Setter Property="Width" Value="NaN"/>
-			<Setter Property="MinWidth" Value="30"/>
-			<Setter Property="Height" Value="NaN"/>
-			<Setter Property="MinHeight" Value="30"/>
-			<Setter Property="Template">
-				<Setter.Value>
-					<ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}">
-						<ControlTemplate.Resources>
-							<Storyboard x:Key="Touch">
-								<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
-								<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-								<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-							</Storyboard>
-							<Storyboard x:Key="Release">
-								<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
-								<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-								<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-							</Storyboard>
-						</ControlTemplate.Resources>
-						<Grid x:Name="GridRoot" VerticalAlignment="Stretch" Height="Auto" SnapsToDevicePixels="True" Background="Transparent">
-							<Grid.RowDefinitions>
-								<RowDefinition Height="Auto"/>
-								<RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
-								<RowDefinition Height="Auto"/>
-							</Grid.RowDefinitions>
-							<Canvas ClipToBounds="False">
-								<Label x:Name="PART_SurfaceToolTip">
-									<Label.Style>
-										<Style TargetType="{x:Type Label}">
-											<Setter Property="Template">
-												<Setter.Value>
-													<ControlTemplate TargetType="{x:Type Label}">
-														<Grid>
-															<Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2">
-																<TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/>
+    <UserControl.Resources>
+        <Style x:Key="FingersDance.Control.Slider" TargetType="{x:Type Custom:SurfaceSlider}">
+            <Setter Property="Background" Value="#191B2022"/>
+            <Setter Property="BorderBrush" Value="#3F040404"/>
+            <Setter Property="Foreground" Value="Black"/>
+            <Setter Property="Width" Value="NaN"/>
+            <Setter Property="MinWidth" Value="30"/>
+            <Setter Property="Height" Value="NaN"/>
+            <Setter Property="MinHeight" Value="30"/>
+            <Setter Property="Template">
+                <Setter.Value>
+                    <ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}">
+                        <ControlTemplate.Resources>
+                            <Storyboard x:Key="Touch">
+                                <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
+                                <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                            </Storyboard>
+                            <Storyboard x:Key="Release">
+                                <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
+                                <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                            </Storyboard>
+                        </ControlTemplate.Resources>
+                        <Grid x:Name="GridRoot" VerticalAlignment="Stretch" Height="Auto" SnapsToDevicePixels="True" Background="Transparent">
+                            <Grid.RowDefinitions>
+                                <RowDefinition Height="Auto"/>
+                                <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
+                                <RowDefinition Height="Auto"/>
+                            </Grid.RowDefinitions>
+                            <Canvas ClipToBounds="False">
+                                <Label x:Name="PART_SurfaceToolTip">
+                                    <Label.Style>
+                                        <Style TargetType="{x:Type Label}">
+                                            <Setter Property="Template">
+                                                <Setter.Value>
+                                                    <ControlTemplate TargetType="{x:Type Label}">
+                                                        <Grid>
+                                                            <Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2">
+                                                                <TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/>
 															</Border>
-														</Grid>
-													</ControlTemplate>
-												</Setter.Value>
-											</Setter>
-											<Setter Property="Visibility" Value="Collapsed"/>
-											<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/>
-											<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
-											<Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
-											<Setter Property="Padding" Value="2"/>
-										</Style>
-									</Label.Style>
-								</Label>
-							</Canvas>
-							<TickBar x:Name="TopTick" Margin="0,0,0,1" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="False" Placement="Top" ReservedSpace="30"/>
-							<TickBar x:Name="BottomTick" Margin="0,1,0,0" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="2" Fill="{TemplateBinding BorderBrush}" Placement="Bottom" ReservedSpace="30"/>
-							<Rectangle x:Name="TrackBkgd" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="Auto" Height="3" Opacity="1" SnapsToDevicePixels="True" Grid.Row="1" Fill="#FFF8EDED" Stroke="{x:Null}"/>
-							<Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseDebut"/>
-							<Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseFin" RenderTransformOrigin="0.5,0.5">
-								<Ellipse.RenderTransform>
-									<TransformGroup>
-										<ScaleTransform ScaleX="1" ScaleY="1"/>
-										<SkewTransform AngleX="0" AngleY="0"/>
-										<RotateTransform Angle="0"/>
-										<TranslateTransform X="{Binding Path=ActualWidth, ElementName=TrackBkgd, Mode=Default}" Y="0"/>
-									</TransformGroup>
-								</Ellipse.RenderTransform>
-							</Ellipse>
-							<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Row="1">
-								<Custom:SurfaceTrack x:Name="PART_Track" Grid.Row="1">
-									<Custom:SurfaceTrack.Thumb>
-										<Custom:SurfaceThumb x:Name="Thumb" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True" Background="{DynamicResource SliderPlay_xaml}" Margin="-5.072,0,5.048,0" BorderBrush="{x:Null}">
-											<Custom:SurfaceThumb.Style>
-												<Style TargetType="{x:Type Custom:SurfaceThumb}">
-													<Setter Property="Background" Value="Transparent"/>
-													<Setter Property="Custom:ContactVisualizer.Adapter">
-														<Setter.Value>
-															<Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/>
-														</Setter.Value>
-													</Setter>
-													<Setter Property="Template">
-														<Setter.Value>
-															<ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}">
-																<ControlTemplate.Resources>
-																	<Storyboard x:Key="Press">
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
-																		</DoubleAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																		</DoubleAnimationUsingKeyFrames>
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																		</DoubleAnimationUsingKeyFrames>
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																		</DoubleAnimationUsingKeyFrames>
-																	</Storyboard>
-																	<Storyboard x:Key="Release">
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
-																			<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
-																		</DoubleAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																			<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																			<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																			<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																			<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																			<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
-																		</ThicknessAnimationUsingKeyFrames>
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																			<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
-																		</DoubleAnimationUsingKeyFrames>
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																			<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
-																		</DoubleAnimationUsingKeyFrames>
-																		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																			<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
-																		</DoubleAnimationUsingKeyFrames>
-																	</Storyboard>
-																</ControlTemplate.Resources>
-																<Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent">
-																	<Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/>
-																	<Rectangle x:Name="Button" Fill="{x:Null}" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True" Stroke="{x:Null}"/>
-																	<Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Fill="{x:Null}" Stroke="{x:Null}"/>
-																	<Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/>
-																	<Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/>
-																</Grid>
-																<ControlTemplate.Triggers>
-																	<Trigger Property="IsFocused" Value="True"/>
-																	<Trigger Property="IsEnabled" Value="False">
-																		<Setter Property="Fill" TargetName="Button" Value="#00000000"/>
-																		<Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/>
-																		<Setter Property="Stroke" TargetName="Button" Value="#33000000"/>
-																		<Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/>
-																	</Trigger>
-																	<Trigger Property="IsDragging" Value="True">
-																		<Trigger.EnterActions>
-																			<BeginStoryboard>
-																				<Storyboard>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
-																					</DoubleAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																					</DoubleAnimationUsingKeyFrames>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																					</DoubleAnimationUsingKeyFrames>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																					</DoubleAnimationUsingKeyFrames>
-																				</Storyboard>
-																			</BeginStoryboard>
-																		</Trigger.EnterActions>
-																		<Trigger.ExitActions>
-																			<BeginStoryboard>
-																				<Storyboard>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
-																						<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
-																					</DoubleAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																						<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																						<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																						<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																						<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																						<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
-																					</ThicknessAnimationUsingKeyFrames>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																						<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
-																					</DoubleAnimationUsingKeyFrames>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																						<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
-																					</DoubleAnimationUsingKeyFrames>
-																					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																						<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
-																					</DoubleAnimationUsingKeyFrames>
-																				</Storyboard>
-																			</BeginStoryboard>
-																		</Trigger.ExitActions>
-																	</Trigger>
-																</ControlTemplate.Triggers>
-															</ControlTemplate>
-														</Setter.Value>
-													</Setter>
-												</Style>
-											</Custom:SurfaceThumb.Style>
-										</Custom:SurfaceThumb>
-									</Custom:SurfaceTrack.Thumb>
-									<Custom:SurfaceTrack.IncreaseRepeatButton>
-										<Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge">
-											<Custom:SurfaceRepeatButton.Style>
-												<Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
-													<Setter Property="Background" Value="Transparent"/>
-													<Setter Property="BorderBrush" Value="Transparent"/>
-													<Setter Property="IsTabStop" Value="False"/>
-													<Setter Property="Focusable" Value="False"/>
-													<Setter Property="Template">
-														<Setter.Value>
-															<ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
-																<Grid>
-																	<Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
-																</Grid>
-															</ControlTemplate>
-														</Setter.Value>
-													</Setter>
-												</Style>
-											</Custom:SurfaceRepeatButton.Style>
-										</Custom:SurfaceRepeatButton>
-									</Custom:SurfaceTrack.IncreaseRepeatButton>
-									<Custom:SurfaceTrack.DecreaseRepeatButton>
-										<Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge">
-											<Custom:SurfaceRepeatButton.Style>
-												<Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
-													<Setter Property="Background" Value="Transparent"/>
-													<Setter Property="BorderBrush" Value="Transparent"/>
-													<Setter Property="IsTabStop" Value="False"/>
-													<Setter Property="Focusable" Value="False"/>
-													<Setter Property="Template">
-														<Setter.Value>
-															<ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
-																<Grid>
-																	<Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
-																</Grid>
-															</ControlTemplate>
-														</Setter.Value>
-													</Setter>
-												</Style>
-											</Custom:SurfaceRepeatButton.Style>
-										</Custom:SurfaceRepeatButton>
-									</Custom:SurfaceTrack.DecreaseRepeatButton>
-								</Custom:SurfaceTrack>
-							</Border>
-						</Grid>
-						<ControlTemplate.Triggers>
-							<Trigger Property="TickPlacement" Value="TopLeft">
-								<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
-							</Trigger>
-							<Trigger Property="TickPlacement" Value="BottomRight">
-								<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
-							</Trigger>
-							<Trigger Property="TickPlacement" Value="Both">
-								<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
-								<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
-							</Trigger>
-							<Trigger Property="IsMoveToPointEnabled" Value="True">
-								<Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/>
-								<Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/>
-							</Trigger>
-							<Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True">
-								<Trigger.EnterActions>
-									<BeginStoryboard>
-										<Storyboard>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-										</Storyboard>
-									</BeginStoryboard>
-								</Trigger.EnterActions>
-								<Trigger.ExitActions>
-									<BeginStoryboard>
-										<Storyboard>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-										</Storyboard>
-									</BeginStoryboard>
-								</Trigger.ExitActions>
-								<Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
-							</Trigger>
-							<Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True">
-								<Trigger.EnterActions>
-									<BeginStoryboard>
-										<Storyboard>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-										</Storyboard>
-									</BeginStoryboard>
-								</Trigger.EnterActions>
-								<Trigger.ExitActions>
-									<BeginStoryboard>
-										<Storyboard>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-										</Storyboard>
-									</BeginStoryboard>
-								</Trigger.ExitActions>
-								<Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
-							</Trigger>
-							<MultiTrigger>
-								<MultiTrigger.Conditions>
-									<Condition Property="IsMoveToPointEnabled" Value="True"/>
-									<Condition Property="IsAnyContactCaptured" Value="True"/>
-									<Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/>
-								</MultiTrigger.Conditions>
-								<MultiTrigger.ExitActions>
-									<BeginStoryboard>
-										<Storyboard>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-											<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-										</Storyboard>
-									</BeginStoryboard>
-								</MultiTrigger.ExitActions>
-								<MultiTrigger.EnterActions>
-									<BeginStoryboard>
-										<Storyboard>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-											<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-										</Storyboard>
-									</BeginStoryboard>
-								</MultiTrigger.EnterActions>
-							</MultiTrigger>
-							<Trigger Property="IsEnabled" Value="False">
-								<Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/>
-								<Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/>
-								<Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/>
-							</Trigger>
-						</ControlTemplate.Triggers>
-					</ControlTemplate>
-				</Setter.Value>
-			</Setter>
-			<Style.Triggers>
-				<Trigger Property="Orientation" Value="Vertical">
-					<Setter Property="Width" Value="NaN"/>
-					<Setter Property="MinWidth" Value="30"/>
-					<Setter Property="Height" Value="NaN"/>
-					<Setter Property="MinHeight" Value="30"/>
-					<Setter Property="Template">
-						<Setter.Value>
-							<ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}">
-								<ControlTemplate.Resources>
-									<Storyboard x:Key="Touch">
-										<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
-										<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-										<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-									</Storyboard>
-									<Storyboard x:Key="Release">
-										<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
-										<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-										<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-									</Storyboard>
-								</ControlTemplate.Resources>
-								<Grid x:Name="GridRoot" HorizontalAlignment="Stretch" Width="Auto" SnapsToDevicePixels="True" Background="Transparent">
-									<Grid.ColumnDefinitions>
-										<ColumnDefinition Width="Auto"/>
-										<ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
-										<ColumnDefinition Width="Auto"/>
-									</Grid.ColumnDefinitions>
-									<Canvas ClipToBounds="False">
-										<Label x:Name="PART_SurfaceToolTip">
-											<Label.Style>
-												<Style TargetType="{x:Type Label}">
-													<Setter Property="Template">
-														<Setter.Value>
-															<ControlTemplate TargetType="{x:Type Label}">
-																<Grid>
-																	<Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2">
-																		<TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/>
+                                                        </Grid>
+                                                    </ControlTemplate>
+                                                </Setter.Value>
+                                            </Setter>
+                                            <Setter Property="Visibility" Value="Collapsed"/>
+                                            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/>
+                                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
+                                            <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
+                                            <Setter Property="Padding" Value="2"/>
+                                        </Style>
+                                    </Label.Style>
+                                </Label>
+                            </Canvas>
+                            <TickBar x:Name="TopTick" Margin="0,0,0,1" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="False" Placement="Top" ReservedSpace="30"/>
+                            <TickBar x:Name="BottomTick" Margin="0,1,0,0" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="2" Fill="{TemplateBinding BorderBrush}" Placement="Bottom" ReservedSpace="30"/>
+                            <Rectangle x:Name="TrackBkgd" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="Auto" Height="3" Opacity="1" SnapsToDevicePixels="True" Grid.Row="1" Fill="#FFF8EDED" Stroke="{x:Null}"/>
+                            <Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseDebut"/>
+                            <Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseFin" RenderTransformOrigin="0.5,0.5">
+                                <Ellipse.RenderTransform>
+                                    <TransformGroup>
+                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
+                                        <SkewTransform AngleX="0" AngleY="0"/>
+                                        <RotateTransform Angle="0"/>
+                                        <TranslateTransform X="{Binding Path=ActualWidth, ElementName=TrackBkgd, Mode=Default}" Y="0"/>
+                                    </TransformGroup>
+                                </Ellipse.RenderTransform>
+                            </Ellipse>
+                            <Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Row="1">
+                                <Custom:SurfaceTrack x:Name="PART_Track" Grid.Row="1">
+                                    <Custom:SurfaceTrack.Thumb>
+                                        <Custom:SurfaceThumb x:Name="Thumb" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True" Background="{DynamicResource SliderPlay_xaml}" Margin="-5.072,0,5.048,0" BorderBrush="{x:Null}">
+                                            <Custom:SurfaceThumb.Style>
+                                                <Style TargetType="{x:Type Custom:SurfaceThumb}">
+                                                    <Setter Property="Background" Value="Transparent"/>
+                                                    <Setter Property="Custom:ContactVisualizer.Adapter">
+                                                        <Setter.Value>
+                                                            <Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/>
+                                                        </Setter.Value>
+                                                    </Setter>
+                                                    <Setter Property="Template">
+                                                        <Setter.Value>
+                                                            <ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}">
+                                                                <ControlTemplate.Resources>
+                                                                    <Storyboard x:Key="Press">
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                    </Storyboard>
+                                                                    <Storyboard x:Key="Release">
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
+                                                                            <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                            <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                            <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                            <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                            <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                            <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
+                                                                        </ThicknessAnimationUsingKeyFrames>
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                            <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
+                                                                        </DoubleAnimationUsingKeyFrames>
+                                                                    </Storyboard>
+                                                                </ControlTemplate.Resources>
+                                                                <Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent">
+                                                                    <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/>
+                                                                    <Rectangle x:Name="Button" Fill="{x:Null}" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True" Stroke="{x:Null}"/>
+                                                                    <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Fill="{x:Null}" Stroke="{x:Null}"/>
+                                                                    <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/>
+                                                                    <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/>
+                                                                </Grid>
+                                                                <ControlTemplate.Triggers>
+                                                                    <Trigger Property="IsFocused" Value="True"/>
+                                                                    <Trigger Property="IsEnabled" Value="False">
+                                                                        <Setter Property="Fill" TargetName="Button" Value="#00000000"/>
+                                                                        <Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/>
+                                                                        <Setter Property="Stroke" TargetName="Button" Value="#33000000"/>
+                                                                        <Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/>
+                                                                    </Trigger>
+                                                                    <Trigger Property="IsDragging" Value="True">
+                                                                        <Trigger.EnterActions>
+                                                                            <BeginStoryboard>
+                                                                                <Storyboard>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                </Storyboard>
+                                                                            </BeginStoryboard>
+                                                                        </Trigger.EnterActions>
+                                                                        <Trigger.ExitActions>
+                                                                            <BeginStoryboard>
+                                                                                <Storyboard>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
+                                                                                        <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                        <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                        <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                        <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                        <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                        <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
+                                                                                    </ThicknessAnimationUsingKeyFrames>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                        <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                    </DoubleAnimationUsingKeyFrames>
+                                                                                </Storyboard>
+                                                                            </BeginStoryboard>
+                                                                        </Trigger.ExitActions>
+                                                                    </Trigger>
+                                                                </ControlTemplate.Triggers>
+                                                            </ControlTemplate>
+                                                        </Setter.Value>
+                                                    </Setter>
+                                                </Style>
+                                            </Custom:SurfaceThumb.Style>
+                                        </Custom:SurfaceThumb>
+                                    </Custom:SurfaceTrack.Thumb>
+                                    <Custom:SurfaceTrack.IncreaseRepeatButton>
+                                        <Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge">
+                                            <Custom:SurfaceRepeatButton.Style>
+                                                <Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                    <Setter Property="Background" Value="Transparent"/>
+                                                    <Setter Property="BorderBrush" Value="Transparent"/>
+                                                    <Setter Property="IsTabStop" Value="False"/>
+                                                    <Setter Property="Focusable" Value="False"/>
+                                                    <Setter Property="Template">
+                                                        <Setter.Value>
+                                                            <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                                <Grid>
+                                                                    <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
+                                                                </Grid>
+                                                            </ControlTemplate>
+                                                        </Setter.Value>
+                                                    </Setter>
+                                                </Style>
+                                            </Custom:SurfaceRepeatButton.Style>
+                                        </Custom:SurfaceRepeatButton>
+                                    </Custom:SurfaceTrack.IncreaseRepeatButton>
+                                    <Custom:SurfaceTrack.DecreaseRepeatButton>
+                                        <Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge">
+                                            <Custom:SurfaceRepeatButton.Style>
+                                                <Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                    <Setter Property="Background" Value="Transparent"/>
+                                                    <Setter Property="BorderBrush" Value="Transparent"/>
+                                                    <Setter Property="IsTabStop" Value="False"/>
+                                                    <Setter Property="Focusable" Value="False"/>
+                                                    <Setter Property="Template">
+                                                        <Setter.Value>
+                                                            <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                                <Grid>
+                                                                    <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
+                                                                </Grid>
+                                                            </ControlTemplate>
+                                                        </Setter.Value>
+                                                    </Setter>
+                                                </Style>
+                                            </Custom:SurfaceRepeatButton.Style>
+                                        </Custom:SurfaceRepeatButton>
+                                    </Custom:SurfaceTrack.DecreaseRepeatButton>
+                                </Custom:SurfaceTrack>
+                            </Border>
+                        </Grid>
+                        <ControlTemplate.Triggers>
+                            <Trigger Property="TickPlacement" Value="TopLeft">
+                                <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
+                            </Trigger>
+                            <Trigger Property="TickPlacement" Value="BottomRight">
+                                <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
+                            </Trigger>
+                            <Trigger Property="TickPlacement" Value="Both">
+                                <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
+                                <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
+                            </Trigger>
+                            <Trigger Property="IsMoveToPointEnabled" Value="True">
+                                <Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/>
+                                <Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/>
+                            </Trigger>
+                            <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True">
+                                <Trigger.EnterActions>
+                                    <BeginStoryboard>
+                                        <Storyboard>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                                        </Storyboard>
+                                    </BeginStoryboard>
+                                </Trigger.EnterActions>
+                                <Trigger.ExitActions>
+                                    <BeginStoryboard>
+                                        <Storyboard>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                                        </Storyboard>
+                                    </BeginStoryboard>
+                                </Trigger.ExitActions>
+                                <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
+                            </Trigger>
+                            <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True">
+                                <Trigger.EnterActions>
+                                    <BeginStoryboard>
+                                        <Storyboard>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                                        </Storyboard>
+                                    </BeginStoryboard>
+                                </Trigger.EnterActions>
+                                <Trigger.ExitActions>
+                                    <BeginStoryboard>
+                                        <Storyboard>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                                        </Storyboard>
+                                    </BeginStoryboard>
+                                </Trigger.ExitActions>
+                                <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
+                            </Trigger>
+                            <MultiTrigger>
+                                <MultiTrigger.Conditions>
+                                    <Condition Property="IsMoveToPointEnabled" Value="True"/>
+                                    <Condition Property="IsAnyContactCaptured" Value="True"/>
+                                    <Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/>
+                                </MultiTrigger.Conditions>
+                                <MultiTrigger.ExitActions>
+                                    <BeginStoryboard>
+                                        <Storyboard>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                            <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                                        </Storyboard>
+                                    </BeginStoryboard>
+                                </MultiTrigger.ExitActions>
+                                <MultiTrigger.EnterActions>
+                                    <BeginStoryboard>
+                                        <Storyboard>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                                        </Storyboard>
+                                    </BeginStoryboard>
+                                </MultiTrigger.EnterActions>
+                            </MultiTrigger>
+                            <Trigger Property="IsEnabled" Value="False">
+                                <Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/>
+                                <Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/>
+                                <Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/>
+                            </Trigger>
+                        </ControlTemplate.Triggers>
+                    </ControlTemplate>
+                </Setter.Value>
+            </Setter>
+            <Style.Triggers>
+                <Trigger Property="Orientation" Value="Vertical">
+                    <Setter Property="Width" Value="NaN"/>
+                    <Setter Property="MinWidth" Value="30"/>
+                    <Setter Property="Height" Value="NaN"/>
+                    <Setter Property="MinHeight" Value="30"/>
+                    <Setter Property="Template">
+                        <Setter.Value>
+                            <ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}">
+                                <ControlTemplate.Resources>
+                                    <Storyboard x:Key="Touch">
+                                        <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
+                                        <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                        <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                                    </Storyboard>
+                                    <Storyboard x:Key="Release">
+                                        <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
+                                        <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                        <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                                    </Storyboard>
+                                </ControlTemplate.Resources>
+                                <Grid x:Name="GridRoot" HorizontalAlignment="Stretch" Width="Auto" SnapsToDevicePixels="True" Background="Transparent">
+                                    <Grid.ColumnDefinitions>
+                                        <ColumnDefinition Width="Auto"/>
+                                        <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
+                                        <ColumnDefinition Width="Auto"/>
+                                    </Grid.ColumnDefinitions>
+                                    <Canvas ClipToBounds="False">
+                                        <Label x:Name="PART_SurfaceToolTip">
+                                            <Label.Style>
+                                                <Style TargetType="{x:Type Label}">
+                                                    <Setter Property="Template">
+                                                        <Setter.Value>
+                                                            <ControlTemplate TargetType="{x:Type Label}">
+                                                                <Grid>
+                                                                    <Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2">
+                                                                        <TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/>
 																	</Border>
-																</Grid>
-															</ControlTemplate>
-														</Setter.Value>
-													</Setter>
-													<Setter Property="Visibility" Value="Collapsed"/>
-													<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/>
-													<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
-													<Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
-													<Setter Property="Padding" Value="2"/>
-												</Style>
-											</Label.Style>
-										</Label>
-									</Canvas>
-									<TickBar x:Name="TopTick" Margin="0,0,1,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Left" ReservedSpace="30"/>
-									<TickBar x:Name="BottomTick" Margin="1,0,0,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="2" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Right" ReservedSpace="30"/>
-									<Rectangle x:Name="TrackBkgd" Fill="{TemplateBinding Background}" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="6" Height="Auto" SnapsToDevicePixels="True" Grid.Column="1">
-										<Rectangle.Stroke>
-											<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
-												<GradientStop Color="#66000000" Offset="0"/>
-												<GradientStop Color="#4CFFFFFF" Offset="1"/>
-											</LinearGradientBrush>
-										</Rectangle.Stroke>
-									</Rectangle>
-									<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Column="1">
-										<Custom:SurfaceTrack x:Name="PART_Track" HorizontalAlignment="Stretch" Grid.Column="1">
-											<Custom:SurfaceTrack.DecreaseRepeatButton>
-												<Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge">
-													<Custom:SurfaceRepeatButton.Style>
-														<Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
-															<Setter Property="Background" Value="Transparent"/>
-															<Setter Property="BorderBrush" Value="Transparent"/>
-															<Setter Property="IsTabStop" Value="False"/>
-															<Setter Property="Focusable" Value="False"/>
-															<Setter Property="Template">
-																<Setter.Value>
-																	<ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
-																		<Grid>
-																			<Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
-																		</Grid>
-																	</ControlTemplate>
-																</Setter.Value>
-															</Setter>
-														</Style>
-													</Custom:SurfaceRepeatButton.Style>
-												</Custom:SurfaceRepeatButton>
-											</Custom:SurfaceTrack.DecreaseRepeatButton>
-											<Custom:SurfaceTrack.IncreaseRepeatButton>
-												<Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge">
-													<Custom:SurfaceRepeatButton.Style>
-														<Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
-															<Setter Property="Background" Value="Transparent"/>
-															<Setter Property="BorderBrush" Value="Transparent"/>
-															<Setter Property="IsTabStop" Value="False"/>
-															<Setter Property="Focusable" Value="False"/>
-															<Setter Property="Template">
-																<Setter.Value>
-																	<ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
-																		<Grid>
-																			<Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
-																		</Grid>
-																	</ControlTemplate>
-																</Setter.Value>
-															</Setter>
-														</Style>
-													</Custom:SurfaceRepeatButton.Style>
-												</Custom:SurfaceRepeatButton>
-											</Custom:SurfaceTrack.IncreaseRepeatButton>
-											<Custom:SurfaceTrack.Thumb>
-												<Custom:SurfaceThumb x:Name="Thumb" HorizontalAlignment="Center" Margin="0,0,1,0" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True">
-													<Custom:SurfaceThumb.Style>
-														<Style TargetType="{x:Type Custom:SurfaceThumb}">
-															<Setter Property="Background" Value="Transparent"/>
-															<Setter Property="Custom:ContactVisualizer.Adapter">
-																<Setter.Value>
-																	<Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/>
-																</Setter.Value>
-															</Setter>
-															<Setter Property="Template">
-																<Setter.Value>
-																	<ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}">
-																		<ControlTemplate.Resources>
-																			<Storyboard x:Key="Press">
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
-																				</DoubleAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																				</DoubleAnimationUsingKeyFrames>
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																				</DoubleAnimationUsingKeyFrames>
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																				</DoubleAnimationUsingKeyFrames>
-																			</Storyboard>
-																			<Storyboard x:Key="Release">
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
-																					<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
-																				</DoubleAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																					<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																					<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																					<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																					<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																					<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
-																				</ThicknessAnimationUsingKeyFrames>
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																					<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
-																				</DoubleAnimationUsingKeyFrames>
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																					<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
-																				</DoubleAnimationUsingKeyFrames>
-																				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																					<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
-																				</DoubleAnimationUsingKeyFrames>
-																			</Storyboard>
-																		</ControlTemplate.Resources>
-																		<Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent">
-																			<Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/>
-																			<Rectangle x:Name="Button" Fill="#33A4B4BD" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True">
-																				<Rectangle.Stroke>
-																					<LinearGradientBrush EndPoint="0,0" StartPoint="0,1">
-																						<GradientStop Color="#66000000" Offset="0"/>
-																						<GradientStop Color="#33000000" Offset="1"/>
-																					</LinearGradientBrush>
-																				</Rectangle.Stroke>
-																			</Rectangle>
-																			<Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True">
-																				<Rectangle.Stroke>
-																					<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
-																						<GradientStop Color="#7FFFFFFF" Offset="0"/>
-																						<GradientStop Color="#0CFFFFFF" Offset="1"/>
-																					</LinearGradientBrush>
-																				</Rectangle.Stroke>
-																				<Rectangle.Fill>
-																					<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
-																						<GradientStop Color="#26000000" Offset="0"/>
-																						<GradientStop Color="#4CFFFFFF" Offset="1"/>
-																					</LinearGradientBrush>
-																				</Rectangle.Fill>
-																			</Rectangle>
-																			<Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/>
-																			<Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/>
-																		</Grid>
-																		<ControlTemplate.Triggers>
-																			<Trigger Property="IsFocused" Value="True"/>
-																			<Trigger Property="IsEnabled" Value="False">
-																				<Setter Property="Fill" TargetName="Button" Value="#00000000"/>
-																				<Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/>
-																				<Setter Property="Stroke" TargetName="Button" Value="#33000000"/>
-																				<Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/>
-																			</Trigger>
-																			<Trigger Property="IsDragging" Value="True">
-																				<Trigger.EnterActions>
-																					<BeginStoryboard>
-																						<Storyboard>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
-																							</DoubleAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																							</DoubleAnimationUsingKeyFrames>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																							</DoubleAnimationUsingKeyFrames>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
-																							</DoubleAnimationUsingKeyFrames>
-																						</Storyboard>
-																					</BeginStoryboard>
-																				</Trigger.EnterActions>
-																				<Trigger.ExitActions>
-																					<BeginStoryboard>
-																						<Storyboard>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
-																								<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
-																							</DoubleAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																								<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																								<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																								<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
-																								<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
-																								<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
-																							</ThicknessAnimationUsingKeyFrames>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																								<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
-																							</DoubleAnimationUsingKeyFrames>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																								<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
-																							</DoubleAnimationUsingKeyFrames>
-																							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
-																								<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
-																								<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
-																							</DoubleAnimationUsingKeyFrames>
-																						</Storyboard>
-																					</BeginStoryboard>
-																				</Trigger.ExitActions>
-																			</Trigger>
-																		</ControlTemplate.Triggers>
-																	</ControlTemplate>
-																</Setter.Value>
-															</Setter>
-														</Style>
-													</Custom:SurfaceThumb.Style>
-												</Custom:SurfaceThumb>
-											</Custom:SurfaceTrack.Thumb>
-										</Custom:SurfaceTrack>
-									</Border>
-								</Grid>
-								<ControlTemplate.Triggers>
-									<Trigger Property="TickPlacement" Value="TopLeft">
-										<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
-									</Trigger>
-									<Trigger Property="TickPlacement" Value="BottomRight">
-										<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
-									</Trigger>
-									<Trigger Property="TickPlacement" Value="Both">
-										<Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
-										<Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
-									</Trigger>
-									<Trigger Property="IsMoveToPointEnabled" Value="True">
-										<Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/>
-										<Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/>
-									</Trigger>
-									<Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True">
-										<Trigger.EnterActions>
-											<BeginStoryboard>
-												<Storyboard>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-												</Storyboard>
-											</BeginStoryboard>
-										</Trigger.EnterActions>
-										<Trigger.ExitActions>
-											<BeginStoryboard>
-												<Storyboard>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-												</Storyboard>
-											</BeginStoryboard>
-										</Trigger.ExitActions>
-										<Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
-									</Trigger>
-									<Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True">
-										<Trigger.EnterActions>
-											<BeginStoryboard>
-												<Storyboard>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-												</Storyboard>
-											</BeginStoryboard>
-										</Trigger.EnterActions>
-										<Trigger.ExitActions>
-											<BeginStoryboard>
-												<Storyboard>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-												</Storyboard>
-											</BeginStoryboard>
-										</Trigger.ExitActions>
-										<Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
-									</Trigger>
-									<MultiTrigger>
-										<MultiTrigger.Conditions>
-											<Condition Property="IsMoveToPointEnabled" Value="True"/>
-											<Condition Property="IsAnyContactCaptured" Value="True"/>
-											<Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/>
-										</MultiTrigger.Conditions>
-										<MultiTrigger.ExitActions>
-											<BeginStoryboard>
-												<Storyboard>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
-													<DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
-												</Storyboard>
-											</BeginStoryboard>
-										</MultiTrigger.ExitActions>
-										<MultiTrigger.EnterActions>
-											<BeginStoryboard>
-												<Storyboard>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
-													<DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
-												</Storyboard>
-											</BeginStoryboard>
-										</MultiTrigger.EnterActions>
-									</MultiTrigger>
-									<Trigger Property="IsEnabled" Value="False">
-										<Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/>
-										<Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/>
-										<Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/>
-										<Setter Property="Margin" TargetName="Thumb" Value="0"/>
-									</Trigger>
-								</ControlTemplate.Triggers>
-							</ControlTemplate>
-						</Setter.Value>
-					</Setter>
-				</Trigger>
-			</Style.Triggers>
-		</Style>
-	</UserControl.Resources>
+                                                                </Grid>
+                                                            </ControlTemplate>
+                                                        </Setter.Value>
+                                                    </Setter>
+                                                    <Setter Property="Visibility" Value="Collapsed"/>
+                                                    <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/>
+                                                    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
+                                                    <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/>
+                                                    <Setter Property="Padding" Value="2"/>
+                                                </Style>
+                                            </Label.Style>
+                                        </Label>
+                                    </Canvas>
+                                    <TickBar x:Name="TopTick" Margin="0,0,1,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Left" ReservedSpace="30"/>
+                                    <TickBar x:Name="BottomTick" Margin="1,0,0,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="2" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Right" ReservedSpace="30"/>
+                                    <Rectangle x:Name="TrackBkgd" Fill="{TemplateBinding Background}" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="6" Height="Auto" SnapsToDevicePixels="True" Grid.Column="1">
+                                        <Rectangle.Stroke>
+                                            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
+                                                <GradientStop Color="#66000000" Offset="0"/>
+                                                <GradientStop Color="#4CFFFFFF" Offset="1"/>
+                                            </LinearGradientBrush>
+                                        </Rectangle.Stroke>
+                                    </Rectangle>
+                                    <Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Column="1">
+                                        <Custom:SurfaceTrack x:Name="PART_Track" HorizontalAlignment="Stretch" Grid.Column="1">
+                                            <Custom:SurfaceTrack.DecreaseRepeatButton>
+                                                <Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge">
+                                                    <Custom:SurfaceRepeatButton.Style>
+                                                        <Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                            <Setter Property="Background" Value="Transparent"/>
+                                                            <Setter Property="BorderBrush" Value="Transparent"/>
+                                                            <Setter Property="IsTabStop" Value="False"/>
+                                                            <Setter Property="Focusable" Value="False"/>
+                                                            <Setter Property="Template">
+                                                                <Setter.Value>
+                                                                    <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                                        <Grid>
+                                                                            <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
+                                                                        </Grid>
+                                                                    </ControlTemplate>
+                                                                </Setter.Value>
+                                                            </Setter>
+                                                        </Style>
+                                                    </Custom:SurfaceRepeatButton.Style>
+                                                </Custom:SurfaceRepeatButton>
+                                            </Custom:SurfaceTrack.DecreaseRepeatButton>
+                                            <Custom:SurfaceTrack.IncreaseRepeatButton>
+                                                <Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge">
+                                                    <Custom:SurfaceRepeatButton.Style>
+                                                        <Style TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                            <Setter Property="Background" Value="Transparent"/>
+                                                            <Setter Property="BorderBrush" Value="Transparent"/>
+                                                            <Setter Property="IsTabStop" Value="False"/>
+                                                            <Setter Property="Focusable" Value="False"/>
+                                                            <Setter Property="Template">
+                                                                <Setter.Value>
+                                                                    <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}">
+                                                                        <Grid>
+                                                                            <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
+                                                                        </Grid>
+                                                                    </ControlTemplate>
+                                                                </Setter.Value>
+                                                            </Setter>
+                                                        </Style>
+                                                    </Custom:SurfaceRepeatButton.Style>
+                                                </Custom:SurfaceRepeatButton>
+                                            </Custom:SurfaceTrack.IncreaseRepeatButton>
+                                            <Custom:SurfaceTrack.Thumb>
+                                                <Custom:SurfaceThumb x:Name="Thumb" HorizontalAlignment="Center" Margin="0,0,1,0" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True">
+                                                    <Custom:SurfaceThumb.Style>
+                                                        <Style TargetType="{x:Type Custom:SurfaceThumb}">
+                                                            <Setter Property="Background" Value="Transparent"/>
+                                                            <Setter Property="Custom:ContactVisualizer.Adapter">
+                                                                <Setter.Value>
+                                                                    <Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/>
+                                                                </Setter.Value>
+                                                            </Setter>
+                                                            <Setter Property="Template">
+                                                                <Setter.Value>
+                                                                    <ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}">
+                                                                        <ControlTemplate.Resources>
+                                                                            <Storyboard x:Key="Press">
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                            </Storyboard>
+                                                                            <Storyboard x:Key="Release">
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
+                                                                                    <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                    <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                    <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                    <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                    <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                    <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
+                                                                                </ThicknessAnimationUsingKeyFrames>
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                    <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                    <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                    <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                </DoubleAnimationUsingKeyFrames>
+                                                                            </Storyboard>
+                                                                        </ControlTemplate.Resources>
+                                                                        <Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent">
+                                                                            <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/>
+                                                                            <Rectangle x:Name="Button" Fill="#33A4B4BD" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True">
+                                                                                <Rectangle.Stroke>
+                                                                                    <LinearGradientBrush EndPoint="0,0" StartPoint="0,1">
+                                                                                        <GradientStop Color="#66000000" Offset="0"/>
+                                                                                        <GradientStop Color="#33000000" Offset="1"/>
+                                                                                    </LinearGradientBrush>
+                                                                                </Rectangle.Stroke>
+                                                                            </Rectangle>
+                                                                            <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True">
+                                                                                <Rectangle.Stroke>
+                                                                                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
+                                                                                        <GradientStop Color="#7FFFFFFF" Offset="0"/>
+                                                                                        <GradientStop Color="#0CFFFFFF" Offset="1"/>
+                                                                                    </LinearGradientBrush>
+                                                                                </Rectangle.Stroke>
+                                                                                <Rectangle.Fill>
+                                                                                    <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
+                                                                                        <GradientStop Color="#26000000" Offset="0"/>
+                                                                                        <GradientStop Color="#4CFFFFFF" Offset="1"/>
+                                                                                    </LinearGradientBrush>
+                                                                                </Rectangle.Fill>
+                                                                            </Rectangle>
+                                                                            <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/>
+                                                                            <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/>
+                                                                        </Grid>
+                                                                        <ControlTemplate.Triggers>
+                                                                            <Trigger Property="IsFocused" Value="True"/>
+                                                                            <Trigger Property="IsEnabled" Value="False">
+                                                                                <Setter Property="Fill" TargetName="Button" Value="#00000000"/>
+                                                                                <Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/>
+                                                                                <Setter Property="Stroke" TargetName="Button" Value="#33000000"/>
+                                                                                <Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/>
+                                                                            </Trigger>
+                                                                            <Trigger Property="IsDragging" Value="True">
+                                                                                <Trigger.EnterActions>
+                                                                                    <BeginStoryboard>
+                                                                                        <Storyboard>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                        </Storyboard>
+                                                                                    </BeginStoryboard>
+                                                                                </Trigger.EnterActions>
+                                                                                <Trigger.ExitActions>
+                                                                                    <BeginStoryboard>
+                                                                                        <Storyboard>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
+                                                                                                <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                                <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                                <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                                <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)">
+                                                                                                <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                                <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/>
+                                                                                            </ThicknessAnimationUsingKeyFrames>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                                <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                                <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
+                                                                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
+                                                                                                <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
+                                                                                            </DoubleAnimationUsingKeyFrames>
+                                                                                        </Storyboard>
+                                                                                    </BeginStoryboard>
+                                                                                </Trigger.ExitActions>
+                                                                            </Trigger>
+                                                                        </ControlTemplate.Triggers>
+                                                                    </ControlTemplate>
+                                                                </Setter.Value>
+                                                            </Setter>
+                                                        </Style>
+                                                    </Custom:SurfaceThumb.Style>
+                                                </Custom:SurfaceThumb>
+                                            </Custom:SurfaceTrack.Thumb>
+                                        </Custom:SurfaceTrack>
+                                    </Border>
+                                </Grid>
+                                <ControlTemplate.Triggers>
+                                    <Trigger Property="TickPlacement" Value="TopLeft">
+                                        <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
+                                    </Trigger>
+                                    <Trigger Property="TickPlacement" Value="BottomRight">
+                                        <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
+                                    </Trigger>
+                                    <Trigger Property="TickPlacement" Value="Both">
+                                        <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
+                                        <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
+                                    </Trigger>
+                                    <Trigger Property="IsMoveToPointEnabled" Value="True">
+                                        <Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/>
+                                        <Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/>
+                                    </Trigger>
+                                    <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True">
+                                        <Trigger.EnterActions>
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </Trigger.EnterActions>
+                                        <Trigger.ExitActions>
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </Trigger.ExitActions>
+                                        <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
+                                    </Trigger>
+                                    <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True">
+                                        <Trigger.EnterActions>
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </Trigger.EnterActions>
+                                        <Trigger.ExitActions>
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </Trigger.ExitActions>
+                                        <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/>
+                                    </Trigger>
+                                    <MultiTrigger>
+                                        <MultiTrigger.Conditions>
+                                            <Condition Property="IsMoveToPointEnabled" Value="True"/>
+                                            <Condition Property="IsAnyContactCaptured" Value="True"/>
+                                            <Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/>
+                                        </MultiTrigger.Conditions>
+                                        <MultiTrigger.ExitActions>
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/>
+                                                    <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </MultiTrigger.ExitActions>
+                                        <MultiTrigger.EnterActions>
+                                            <BeginStoryboard>
+                                                <Storyboard>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/>
+                                                    <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/>
+                                                </Storyboard>
+                                            </BeginStoryboard>
+                                        </MultiTrigger.EnterActions>
+                                    </MultiTrigger>
+                                    <Trigger Property="IsEnabled" Value="False">
+                                        <Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/>
+                                        <Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/>
+                                        <Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/>
+                                        <Setter Property="Margin" TargetName="Thumb" Value="0"/>
+                                    </Trigger>
+                                </ControlTemplate.Triggers>
+                            </ControlTemplate>
+                        </Setter.Value>
+                    </Setter>
+                </Trigger>
+            </Style.Triggers>
+        </Style>
+    </UserControl.Resources>
 
-	<Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}">
-		<Custom:SurfaceSlider  Height="Auto" x:Name="slider" Value="0.5" Width="Auto" 
+    <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}">
+        <Custom:SurfaceSlider  Height="Auto" x:Name="slider" Value="0.5" Width="Auto" 
                                Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted" ContactTapGesture="slider_ContactTapGesture" Background="#19FFFFFF" Style="{DynamicResource FingersDance.Control.Slider}" />
         <vw:TimelineView x:Name="tv" Margin="0,15,0,0" Background="{x:Null}"/>
+        <popup:UserControlClose x:Name="confirmCancelPopup" Question="Êtes-vous de sûr de vouloir effacer cette annotation ?" Visibility="Hidden" ConfirmYesOrNo="confirmCancelPopup_ConfirmYesOrNo" />
     </Grid>
 </UserControl>
\ No newline at end of file
--- a/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs	Wed Oct 14 13:44:25 2009 +0200
@@ -10,13 +10,14 @@
 using System.Windows.Media.Animation;
 using System.Windows.Navigation;
 using System.Windows.Controls.Primitives;
+using Microsoft.Surface.Presentation;
 using Microsoft.Surface.Presentation.Controls;
-using Microsoft.Surface.Presentation;
 using System.Windows.Threading;
 
 using FingersDance.Data;
 using FingersDance.ViewModels;
 using FingersDance.Views;
+using FingersDance.Control.Close;
 
 namespace FingersDance.Control.TimeLine
 {
@@ -28,7 +29,7 @@
         private bool isDragging = false;
         private bool finishedDragging = false;
         #endregion
-
+        
         public event EventHandler DragStarted;
         public event EventHandler DragCompleted;
         public event EventHandler TimerTick;
@@ -41,6 +42,8 @@
         private Boolean AnnotWaiting = false;
         private float AnnotTcBegin;
 
+        private AnnotationViewModel canceledAnnotationVM;
+
         #region Properties
 
         public SurfaceSlider Slider
@@ -98,7 +101,7 @@
 		public UserControlTimeLine()
 		{
 			this.InitializeComponent();
-
+            
 			// Insert code required on object creation below this point.
             
 		}
@@ -402,27 +405,41 @@
         private void onDragCanceled(Object sender, SurfaceDragDropEventArgs e)
         {
             Console.WriteLine("onDragCanceled = " + sender + ", ((ContentControl)e.Cursor.Visual).Content = " + ((ContentControl)e.Cursor.Visual).Content);
-            // e.Cursor.Visual is the ContentControl, so its Content is the dragged TimelineAnnotationView
-            AnnotationViewModel annotationDataVM = (AnnotationViewModel)((TimelineAnnotationView)((ContentControl)e.Cursor.Visual).Content).DataContext;
             // We check if the annotation is well one of the current annotations
             if (CuttingVM != null)
             {
+                // e.Cursor.Visual is the ContentControl, so its Content is the dragged TimelineAnnotationView
+                canceledAnnotationVM = (AnnotationViewModel)((TimelineAnnotationView)((ContentControl)e.Cursor.Visual).Content).DataContext;
+                confirmCancelPopup.Visibility = Visibility.Visible;
+            }
+        }
+
+        private void confirmCancelPopup_ConfirmYesOrNo(object sender, ConfirmEventArgs e)
+        {
+            //Consolenfirm = " + e.Confirmed);
+            // We check if the annotation is well one of the current annotations
+            if (CuttingVM != null && canceledAnnotationVM != null && e.Confirmed == true)
+            {
                 foreach (Annotation a in AnnotList)
                 {
-                    //Console.WriteLine("a.TcBegin = " + a.TcBegin + ", avm.TcBegin = " + avm.TcBegin + ", tcOut = " + (a.TcBegin + a.Dur));
-                    // Check begin TC
-                    if (a.TcBegin == annotationDataVM.TcBegin && a.Dur == annotationDataVM.Dur && a.GestureType==annotationDataVM.GestureType)
+                    // Check begin TcBegin, duration and gesture type
+                    if (a.TcBegin == canceledAnnotationVM.TcBegin && a.Dur == canceledAnnotationVM.Dur && a.GestureType == canceledAnnotationVM.GestureType)
                     {
-                        // We found the good annotation so we can delete it
+                        // We found the good annotation so we can remove it
                         AnnotList.Remove(a);
                         // We redisplay the timeline
                         CuttingVM.setListFromAnnotations(AnnotList, AnnotWidth);
                         tv.DataContext = null;
                         tv.DataContext = CuttingVM;
+                        // We close the popup and return as soon as we removed the annotation to avoid an error on AnnotList, which is just modified
+                        confirmCancelPopup.Visibility = Visibility.Hidden;
+                        canceledAnnotationVM = null;
                         return;
                     }
                 }
             }
+            confirmCancelPopup.Visibility = Visibility.Hidden;
+            canceledAnnotationVM = null;
         }
 
 
--- a/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs	Wed Oct 14 13:44:25 2009 +0200
@@ -13,7 +13,7 @@
 {
 	public partial class UserControlUserPanel
 	{
-       // public int id = 0;
+        public int id = 0;
         Project _Project = new Project();
 
         public Project Project
--- a/src/FingersDance.Views/TimelineView.xaml.cs	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance.Views/TimelineView.xaml.cs	Wed Oct 14 13:44:25 2009 +0200
@@ -25,6 +25,7 @@
 
         private Boolean hasDragCanceledHandler = false;
 
+
         public TimelineView()
         {
             InitializeComponent();
--- a/src/FingersDance/FingersDance.csproj	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance/FingersDance.csproj	Wed Oct 14 13:44:25 2009 +0200
@@ -163,6 +163,10 @@
       <Project>{D579FDB5-D412-4797-A0FF-C5873AE08BB8}</Project>
       <Name>FingersDance.Control.Close</Name>
     </ProjectReference>
+    <ProjectReference Include="..\FingersDance.Control.Close\FingersDance.Control.Close.csproj">
+      <Project>{D579FDB5-D412-4797-A0FF-C5873AE08BB8}</Project>
+      <Name>FingersDance.Control.Close</Name>
+    </ProjectReference>
     <ProjectReference Include="..\FingersDance.Control.Menu\FingersDance.Control.Menu.csproj">
       <Project>{6960F7ED-3D82-4BCE-AB88-D31D6C72F2B6}</Project>
       <Name>FingersDance.Control.Menu</Name>
--- a/src/FingersDance/MainSurfaceWindow.xaml.cs	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance/MainSurfaceWindow.xaml.cs	Wed Oct 14 13:44:25 2009 +0200
@@ -286,10 +286,10 @@
                     {
                         if (Panel1 != null && Grid1.Children.Count == 2)
                         {
-                            UserControlClose UCclose = new UserControlClose(1);
+                            UserControlClose UCclose = new UserControlClose(1, "Êtes-vous sûr de vouloir quitter ?");
                             UCclose.Name = "CloseAlert1";
                             Grid1.Children.Add(UCclose);
-                            UCclose.EH_SurfaceButtonClose_ContactDown += new EventHandler(CloseAlert_EH_SurfaceButton_ContactDown);
+                            UCclose.ConfirmYesOrNo += new EventHandler<ConfirmEventArgs>(CloseAlert_EH_SurfaceButton_ContactDown);
                         }
                     }
                     break;
@@ -309,10 +309,10 @@
                     {
                         if (Panel2 != null && Grid2.Children.Count == 2)
                         {
-                            UserControlClose UCclose = new UserControlClose(2);
+                            UserControlClose UCclose = new UserControlClose(2, "Êtes-vous sûr de vouloir quitter ?");
                             UCclose.Name = "CloseAlert2";
                             Grid2.Children.Add(UCclose);
-                            UCclose.EH_SurfaceButtonClose_ContactDown += new EventHandler(CloseAlert_EH_SurfaceButton_ContactDown);
+                            UCclose.ConfirmYesOrNo += new EventHandler<ConfirmEventArgs>(CloseAlert_EH_SurfaceButton_ContactDown);
                         }
                     }
                     break;
@@ -332,10 +332,10 @@
                     {
                         if (Panel3 != null && Grid3.Children.Count == 2)
                         {
-                            UserControlClose UCclose = new UserControlClose(3);
+                            UserControlClose UCclose = new UserControlClose(3, "Êtes-vous sûr de vouloir quitter ?");
                             UCclose.Name = "CloseAlert3";
                             Grid3.Children.Add(UCclose);
-                            UCclose.EH_SurfaceButtonClose_ContactDown += new EventHandler(CloseAlert_EH_SurfaceButton_ContactDown);
+                            UCclose.ConfirmYesOrNo += new EventHandler<ConfirmEventArgs>(CloseAlert_EH_SurfaceButton_ContactDown);
                         }
                     }
                     break;
@@ -355,10 +355,10 @@
                     {
                         if (Panel4 != null && Grid4.Children.Count == 2)
                         {
-                            UserControlClose UCclose = new UserControlClose(4);
+                            UserControlClose UCclose = new UserControlClose(4, "Êtes-vous sûr de vouloir quitter ?");
                             UCclose.Name = "CloseAlert4";
                             Grid4.Children.Add(UCclose);
-                            UCclose.EH_SurfaceButtonClose_ContactDown += new EventHandler(CloseAlert_EH_SurfaceButton_ContactDown);
+                            UCclose.ConfirmYesOrNo += new EventHandler<ConfirmEventArgs>(CloseAlert_EH_SurfaceButton_ContactDown);
                         }
                     }
                     break;
@@ -412,12 +412,12 @@
         }
 
         //Actions du boutton Alert selon l'action close OK ou NON
-        private void CloseAlert_EH_SurfaceButton_ContactDown(object sender, EventArgs e)
+        private void CloseAlert_EH_SurfaceButton_ContactDown(object sender, ConfirmEventArgs e)
         {
             Grid root = (Grid)(((UserControlClose)sender).Parent);
-            if(((UserControlClose) sender).close)
+            if(e.Confirmed==true)
             {
-                switch(((UserControlClose)sender).Id)
+                switch(e.PanelNumber)
                 {
                     case 1:
                         root.Children.Remove(Panel1);
@@ -438,10 +438,6 @@
                 }
             }
             root.Children.Remove(((UserControlClose)sender));
-
-            //  S'il ne reste aucun panel d'ouvert, on ferme la session
-            if (Panel1 == null && Panel2 == null && Panel3 == null && Panel4 == null)
-                _mainviewmodel.CloseSession();
         }
 
     }
--- a/src/FingersDance/Resources/menu.xml	Tue Oct 13 19:36:04 2009 +0200
+++ b/src/FingersDance/Resources/menu.xml	Wed Oct 14 13:44:25 2009 +0200
@@ -68,13 +68,13 @@
 							<Name>Saut 1</Name>
 							<Items/>
 							<Ressource>FingersDanceAnnotationButtonNiveau3</Ressource>
-							<Action>ActionAddAnnotation</Action>
+							<Action>ActionStartOrEndAnnotation</Action>
 						</Item>
 						<Item>
 							<Name>Pirouette 2</Name>
 							<Items/>
 							<Ressource>FingersDanceAnnotationButtonNiveau3</Ressource>
-							<Action>ActionAddAnnotation</Action>
+							<Action>ActionStartOrEndAnnotation</Action>
 						</Item>
 					</Items>
 					<Ressource>FingersDanceAnnotationButtonNiveau2</Ressource>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance/Resources/videos.xml	Wed Oct 14 13:44:25 2009 +0200
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ArrayOfListVideoItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+  <ListVideoItem>
+    <Name>Butterfly</Name>
+    <Path>C:\Users\santiago\Desktop\MercurialSurfaceFingerDance\src\FingersDance\bin\Debug\Resources\Butterfly.wmv</Path>
+    <Preview>C:\Users\santiago\Desktop\MercurialSurfaceFingerDance\src\FingersDance\bin\Debug\Resources\Butterfly.jpg</Preview>
+  </ListVideoItem>
+  <ListVideoItem>
+    <Name>Lake</Name>
+    <Path>C:\Users\santiago\Desktop\MercurialSurfaceFingerDance\src\FingersDance\bin\Debug\Resources\Lake.wmv</Path>
+    <Preview>C:\Users\santiago\Desktop\MercurialSurfaceFingerDance\src\FingersDance\bin\Debug\Resources\Lake.jpg</Preview>
+  </ListVideoItem>
+  <ListVideoItem>
+    <Name>One Flat Thing</Name>
+    <Path>C:\Users\santiago\Desktop\MercurialSurfaceFingerDance\src\FingersDance\bin\Debug\Resources\oneflat.wmv</Path>
+    <Preview>C:\Users\santiago\Desktop\MercurialSurfaceFingerDance\src\FingersDance\bin\Debug\Resources\oneflat.png</Preview>
+  </ListVideoItem>
+</ArrayOfListVideoItem>
\ No newline at end of file