<Application x:Class="LiveDvrSmoothStreaming.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:player="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core"
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
    xmlns:converters="clr-namespace:Microsoft.SilverlightMediaFramework.Utilities.Converters;assembly=Microsoft.SilverlightMediaFramework.Utilities"
    xmlns:offline="clr-namespace:Microsoft.SilverlightMediaFramework.Utilities.Offline;assembly=Microsoft.SilverlightMediaFramework.Utilities"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" 
    xmlns:ac="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Accessibility.Controls;assembly=Microsoft.SilverlightMediaFramework.Core"
    xmlns:smf="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core" 
    xmlns:smf_media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core" 
    mc:Ignorable="d">
    
    <Application.Resources>
                 <LinearGradientBrush x:Key="metal_grey" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF8A8A8A"/>
                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                </LinearGradientBrush>

                <LinearGradientBrush x:Key="green_glass2" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF49F500"/>
                    <GradientStop Color="#FF195300" Offset="1"/>
                    <GradientStop Color="#FF35B200" Offset="0.496"/>
                    <GradientStop Color="#FF298900" Offset="0.5"/>
                </LinearGradientBrush>

                <Style x:Key="ThumbStyle2" TargetType="Thumb">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="IsTabStop" Value="False"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Thumb">
                                <Grid Background="{StaticResource green_glass2}" Height="20.146">
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard/>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard/>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard/>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                        <vsm:VisualStateGroup x:Name="FocusStates">
                                            <vsm:VisualState x:Name="Focused">
                                                <Storyboard/>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Unfocused"/>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Rectangle Margin="-1,0,-1,0" x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" RadiusX="0" RadiusY="0" Stroke="#FF000000" StrokeThickness="1"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

                <Style x:Key="MaxBitrateSliderStyle" TargetType="Slider">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Slider">
                                <Grid x:Name="Root">
                                    <Grid.Resources>
                                        <ControlTemplate x:Key="RepeatButtonTemplate">
                                            <Grid x:Name="Root" Background="Transparent" Opacity="0"/>
                                        </ControlTemplate>
                                        <Style x:Key="BITRATE_DISPLAY" TargetType="Slider">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="Slider">
                                                        <Grid x:Name="Root">
                                                            <Grid.Resources>
                                                                <ControlTemplate x:Key="RepeatButtonTemplate">
                                                                    <Grid x:Name="Root" Background="Transparent" Opacity="0"/>
                                                                </ControlTemplate>
                                                            </Grid.Resources>
                                                            <Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}">
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="Auto"/>
                                                                    <ColumnDefinition Width="Auto"/>
                                                                    <ColumnDefinition Width="*"/>
                                                                </Grid.ColumnDefinitions>
                                                                <Rectangle Height="Auto" Margin="0,0,0,0" Grid.Column="0" Grid.ColumnSpan="3" RadiusX="1" RadiusY="1" Fill="{StaticResource metal_grey}" Stroke="#FFFFFFFF"/>
                                                                <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Grid.Column="0" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"/>
                                                                <Rectangle Cursor="Hand" x:Name="LeftTrack" Grid.Column="0" Fill="{StaticResource green_glass2}"/>
                                                                <Thumb IsTabStop="True" x:Name="HorizontalThumb" Width="11" Grid.Column="1" Style="{StaticResource ThumbStyle2}" Height="20"/>
                                                                <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"/>
                                                                <Rectangle Cursor="Hand" x:Name="RightTrack" Grid.Column="2" Fill="#00FFFFFF"/>
                                                            </Grid>
                                                            <Grid x:Name="VerticalTemplate" Background="{TemplateBinding Background}" Visibility="Collapsed">
                                                                <Grid.RowDefinitions>
                                                                    <RowDefinition Height="*"/>
                                                                    <RowDefinition Height="Auto"/>
                                                                    <RowDefinition Height="Auto"/>
                                                                </Grid.RowDefinitions>
                                                                <Rectangle Margin="0,5,0,5" Width="3" Grid.Row="0" Grid.RowSpan="3" RadiusX="1" RadiusY="1" Fill="#FFE6EFF7" Stroke="#FFA3AEB9" StrokeThickness="{TemplateBinding BorderThickness}"/>
                                                                <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" Grid.Row="2"/>
                                                                <Rectangle Cursor="Hand" x:Name="DownTrack" Grid.Row="2" Fill="#00FFFFFF"/>
                                                                <Thumb IsTabStop="True" Height="11" x:Name="VerticalThumb" Width="18" Grid.Row="1"/>
                                                                <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" Grid.Row="0"/>
                                                                <Rectangle Cursor="Hand" x:Name="UpTrack" Grid.Row="0" Fill="#00FFFFFF"/>
                                                            </Grid>
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                        <Style x:Key="volume_thumb" TargetType="Thumb">
                                            <Setter Property="Background" Value="#FF1F3B53"/>
                                            <Setter Property="BorderThickness" Value="1"/>
                                            <Setter Property="IsTabStop" Value="False"/>
                                            <Setter Property="BorderBrush">
                                                <Setter.Value>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                                        <GradientStop Color="#FF718597" Offset="0.375"/>
                                                        <GradientStop Color="#FF617584" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Setter.Value>
                                            </Setter>
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="Thumb">
                                                        <Grid Background="{StaticResource green_glass2}" Height="20.146">
                                                            <vsm:VisualStateManager.VisualStateGroups>
                                                                <vsm:VisualStateGroup x:Name="CommonStates">
                                                                    <vsm:VisualState x:Name="Normal"/>
                                                                    <vsm:VisualState x:Name="MouseOver">
                                                                        <Storyboard/>
                                                                    </vsm:VisualState>
                                                                    <vsm:VisualState x:Name="Pressed">
                                                                        <Storyboard/>
                                                                    </vsm:VisualState>
                                                                    <vsm:VisualState x:Name="Disabled">
                                                                        <Storyboard/>
                                                                    </vsm:VisualState>
                                                                </vsm:VisualStateGroup>
                                                                <vsm:VisualStateGroup x:Name="FocusStates">
                                                                    <vsm:VisualState x:Name="Focused">
                                                                        <Storyboard>
                                                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                                            </DoubleAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </vsm:VisualState>
                                                                    <vsm:VisualState x:Name="Unfocused"/>
                                                                </vsm:VisualStateGroup>
                                                            </vsm:VisualStateManager.VisualStateGroups>
                                                            <Rectangle Margin="-1,0,-1,0" x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" RadiusX="0" RadiusY="0" Stroke="#FF000000" StrokeThickness="1"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 0.0400391,1.05725L 0.0400391,0.0579834L 0.0400391,0.057251L 2.04004,0.057251L 2.04004,1.05725L 1.04004,1.05725L 1.04004,3.05798L 0.0400391,3.05798L 0.0400391,1.05725 Z " Height="3.001" HorizontalAlignment="Left" Margin="1.825,1.87,0,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 3.0228,2.04675L 3.0228,3.04614L 3.0228,3.04675L 1.0228,3.04675L 1.0228,2.04675L 2.0228,2.04675L 2.0228,0.0461426L 3.0228,0.0461426L 3.0228,2.04675 Z " Height="3.001" HorizontalAlignment="Left" Margin="2.808,1.859,0,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 0.0315755,5.03284L 0.0315755,4.03357L 0.0315755,4.03284L 2.03158,4.03284L 2.03158,5.03284L 1.03158,5.03284L 1.03158,7.03357L 0.0315755,7.03357L 0.0315755,5.03284 Z " Height="3.001" HorizontalAlignment="Left" Margin="1.817,5.846,0,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 3.01434,6.02209L 3.01434,7.02136L 3.01434,7.02209L 1.01434,7.02209L 1.01434,6.02209L 2.01434,6.02209L 2.01434,4.02136L 3.01434,4.02136L 3.01434,6.02209 Z " Height="3.001" HorizontalAlignment="Left" Margin="2.799,5.834,0,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 0.0201823,8.99841L 0.0201823,7.99902L 0.0201823,7.99841L 2.02018,7.99841L 2.02018,8.99841L 1.02018,8.99841L 1.02018,10.999L 0.0201823,10.999L 0.0201823,8.99841 Z " HorizontalAlignment="Left" Margin="1.805,9.93,0,7.07" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 3.00295,9.98816L 3.00295,10.9875L 3.00295,10.9882L 1.00295,10.9882L 1.00295,9.98816L 2.00295,9.98816L 2.00295,7.98755L 3.00295,7.98755L 3.00295,9.98816 Z " HorizontalAlignment="Left" Margin="2.788,9.919,0,7.081" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 0.0117188,12.974L 0.0117188,11.9746L 0.0117188,11.974L 2.01172,11.974L 2.01172,12.974L 1.01172,12.974L 1.01172,14.9746L 0.0117188,14.9746L 0.0117188,12.974 Z " Height="3.001" HorizontalAlignment="Left" Margin="1.797,0,0,2.784" VerticalAlignment="Bottom" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 2.99448,13.9635L 2.99448,14.9628L 2.99448,14.9635L 0.994484,14.9635L 0.994484,13.9635L 1.99448,13.9635L 1.99448,11.9628L 2.99448,11.9628L 2.99448,13.9635 Z " Height="3.001" HorizontalAlignment="Left" Margin="2.779,0,0,2.795" VerticalAlignment="Bottom" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 4.01449,1.04333L 4.01449,0.0439453L 4.01449,0.043335L 6.01449,0.043335L 6.01449,1.04333L 5.01449,1.04333L 5.01449,3.04395L 4.01449,3.04395L 4.01449,1.04333 Z " Height="3.001" HorizontalAlignment="Right" Margin="0,1.856,3.201,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 6.99725,2.03247L 6.99725,3.03186L 6.99725,3.03247L 4.99725,3.03247L 4.99725,2.03247L 5.99725,2.03247L 5.99725,0.0318604L 6.99725,0.0318604L 6.99725,2.03247 Z " Height="3" HorizontalAlignment="Right" Margin="0,1.845,2.218,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 4.00602,5.01892L 4.00602,4.01953L 4.00602,4.01892L 6.00602,4.01892L 6.00602,5.01892L 5.00602,5.01892L 5.00602,7.01953L 4.00602,7.01953L 4.00602,5.01892 Z " Height="3.001" HorizontalAlignment="Right" Margin="0,5.832,3.209,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 6.98879,6.00769L 6.98879,7.00708L 6.98879,7.00769L 4.98879,7.00769L 4.98879,6.00769L 5.98879,6.00769L 5.98879,4.00708L 6.98879,4.00708L 6.98879,6.00769 Z " Height="3.001" HorizontalAlignment="Right" Margin="0,5.82,2.226,0" VerticalAlignment="Top" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 3.99463,8.98438L 3.99463,7.98499L 3.99463,7.98438L 5.99463,7.98438L 5.99463,8.98438L 4.99463,8.98438L 4.99463,10.985L 3.99463,10.985L 3.99463,8.98438 Z " HorizontalAlignment="Right" Margin="0,10.301,2.966,6.699" Width="2" d:LayoutOverrides="VerticalAlignment"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 6.97739,9.97388L 6.97739,10.9733L 6.97739,10.9739L 4.97739,10.9739L 4.97739,9.97388L 5.97739,9.97388L 5.97739,7.97327L 6.97739,7.97327L 6.97739,9.97388 Z " HorizontalAlignment="Right" Margin="0,10.289,1.985,6.711" Width="2" d:LayoutOverrides="VerticalAlignment"/>
                                                            <Path Stretch="Fill" Fill="#80C3C3C3" Data="F1 M 3.98633,12.96L 3.98633,11.9606L 3.98633,11.96L 5.98633,11.96L 5.98633,12.96L 4.98633,12.96L 4.98633,14.9606L 3.98633,14.9606L 3.98633,12.96 Z " Height="3.001" HorizontalAlignment="Right" Margin="0,0,3.229,2.798" VerticalAlignment="Bottom" Width="2"/>
                                                            <Path Stretch="Fill" Fill="#80000000" Data="F1 M 6.96893,13.9491L 6.96893,14.9485L 6.96893,14.9491L 4.96893,14.9491L 4.96893,13.9491L 5.96893,13.9491L 5.96893,11.9485L 6.96893,11.9485L 6.96893,13.9491 Z " Height="3.001" HorizontalAlignment="Right" Margin="0,0,2.246,2.81" VerticalAlignment="Bottom" Width="2"/>
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Grid.Resources>
                                    <Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <Rectangle Height="Auto" Margin="0,0,0,0" Grid.Column="0" Grid.ColumnSpan="3" RadiusX="1" RadiusY="1" Fill="{StaticResource metal_grey}" Stroke="#FFFFFFFF"/>
                                        <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Grid.Column="0" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"/>
                                        <Rectangle Cursor="Hand" x:Name="LeftTrack" Grid.Column="0" Fill="{StaticResource green_glass2}"/>
                                        <Thumb IsTabStop="True" x:Name="HorizontalThumb" Width="11" Grid.Column="1" Style="{StaticResource volume_thumb}" Height="20"/>
                                        <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"/>
                                        <Rectangle Cursor="Hand" x:Name="RightTrack" Grid.Column="2" Fill="#00FFFFFF"/>
                                    </Grid>
                                    <Grid x:Name="VerticalTemplate" Background="{TemplateBinding Background}" Visibility="Collapsed">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="*"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Rectangle Margin="0,5,0,5" Width="3" Grid.Row="0" Grid.RowSpan="3" RadiusX="1" RadiusY="1" Fill="#FFE6EFF7" Stroke="#FFA3AEB9" StrokeThickness="{TemplateBinding BorderThickness}"/>
                                        <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" Grid.Row="2"/>
                                        <Rectangle Cursor="Hand" x:Name="DownTrack" Grid.Row="2" Fill="#00FFFFFF"/>
                                        <Thumb IsTabStop="True" Height="11" x:Name="VerticalThumb" Width="18" Grid.Row="1"/>
                                        <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" Grid.Row="0"/>
                                        <Rectangle Cursor="Hand" x:Name="UpTrack" Grid.Row="0" Fill="#00FFFFFF"/>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="SmallChange" Value="10"/>
                    <Setter Property="LargeChange" Value="100"/>
                </Style>

                <Style TargetType="player:MaxBitrateLimiterControl">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:MaxBitrateLimiterControl">
                                <Border Height="Auto" Width="400" HorizontalAlignment="Stretch" Margin="0" BorderThickness="2" CornerRadius="5" Opacity="{TemplateBinding Opacity}" x:Name="BitrateGraphBorder">
                                    <Border.BorderBrush>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FF767676"/>
                                            <GradientStop Color="#002F2F2F" Offset="1"/>
                                            <GradientStop Color="#FF494949" Offset="0.628"/>
                                        </LinearGradientBrush>
                                    </Border.BorderBrush>
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#4C767676"/>
                                            <GradientStop Color="#7F2F2F2F" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Grid Height="Auto" HorizontalAlignment="Stretch" Margin="5,0,5,0">
                                        <Grid.Resources>
                                            <Style x:Key="BITRATE_DISPLAY" TargetType="Slider">
                                                <Setter Property="Template">
                                                    <Setter.Value>
                                                        <ControlTemplate TargetType="Slider">
                                                            <Grid x:Name="Root">
                                                                <Grid.Resources>
                                                                    <ControlTemplate x:Key="RepeatButtonTemplate">
                                                                        <Grid x:Name="Root" Background="Transparent" Opacity="0"/>
                                                                    </ControlTemplate>
                                                                </Grid.Resources>
                                                                <Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}">
                                                                    <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                        <ColumnDefinition Width="*"/>
                                                                    </Grid.ColumnDefinitions>
                                                                    <Rectangle Height="Auto" Margin="0,0,0,0" Grid.Column="0" Grid.ColumnSpan="3" RadiusX="1" RadiusY="1" Fill="{StaticResource metal_grey}" Stroke="#FFFFFFFF"/>
                                                                    <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Grid.Column="0" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"/>
                                                                    <Rectangle Cursor="Hand" x:Name="LeftTrack" Grid.Column="0" Fill="{StaticResource green_glass2}"/>
                                                                    <Thumb IsTabStop="True" x:Name="HorizontalThumb" Width="11" Grid.Column="1" Style="{StaticResource ThumbStyle2}" Height="20"/>
                                                                    <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"/>
                                                                    <Rectangle Cursor="Hand" x:Name="RightTrack" Grid.Column="2" Fill="#00FFFFFF"/>
                                                                </Grid>
                                                                <Grid x:Name="VerticalTemplate" Background="{TemplateBinding Background}" Visibility="Collapsed">
                                                                    <Grid.RowDefinitions>
                                                                        <RowDefinition Height="*"/>
                                                                        <RowDefinition Height="Auto"/>
                                                                        <RowDefinition Height="Auto"/>
                                                                    </Grid.RowDefinitions>
                                                                    <Rectangle Margin="0,5,0,5" Width="3" Grid.Row="0" Grid.RowSpan="3" RadiusX="1" RadiusY="1" Fill="#FFE6EFF7" Stroke="#FFA3AEB9" StrokeThickness="{TemplateBinding BorderThickness}"/>
                                                                    <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" Grid.Row="2"/>
                                                                    <Rectangle Cursor="Hand" x:Name="DownTrack" Grid.Row="2" Fill="#00FFFFFF"/>
                                                                    <Thumb IsTabStop="True" Height="11" x:Name="VerticalThumb" Width="18" Grid.Row="1"/>
                                                                    <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" Grid.Row="0"/>
                                                                    <Rectangle Cursor="Hand" x:Name="UpTrack" Grid.Row="0" Fill="#00FFFFFF"/>
                                                                </Grid>
                                                            </Grid>
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </Grid.Resources>
                                        <Grid.RowDefinitions>
                                            <RowDefinition/>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <Grid Grid.Row="0" Height="Auto" x:Name="NowDowloadingBitrateGrid" Width="Auto" Margin="0,0,0,0" VerticalAlignment="Stretch">
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition/>
                                                <RowDefinition Height="Auto"/>
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition/>
                                            </Grid.ColumnDefinitions>
                                            <TextBlock Margin="0,0,0,0" x:Name="NowDownloadingBitrateHeader" VerticalAlignment="Stretch" Foreground="{StaticResource metal_grey}" Text="Now Downloading Bitrate" TextWrapping="NoWrap" HorizontalAlignment="Left" TextAlignment="Center" Grid.ColumnSpan="2"/>
                                            <Slider IsHitTestVisible="False" Height="Auto" HorizontalAlignment="Stretch" x:Name="NowDownloadingSlider" VerticalAlignment="Top" Width="Auto" Grid.Row="1" IsDirectionReversed="False" Orientation="Horizontal" LargeChange="100" Maximum="5000" SmallChange="10" Style="{StaticResource BITRATE_DISPLAY}" Grid.ColumnSpan="2"/>
                                            <StackPanel Height="Auto" Margin="0,0,0,0" x:Name="NowDownloadingBitrateLabelStackPanel" Width="Auto" Grid.RowSpan="1" Orientation="Horizontal" Grid.Column="1" d:LayoutOverrides="Width, Height" HorizontalAlignment="Right">
                                                <TextBlock Height="Auto" x:Name="NowDownloadingBitrateLabel" Width="Auto" Foreground="{StaticResource metal_grey}" Text="0" TextWrapping="Wrap" HorizontalAlignment="Stretch"/>
                                                <TextBlock Height="Auto" x:Name="NowDownloadingBitrateLabelUnits" Width="Auto" Foreground="{StaticResource metal_grey}" Text="kbps" TextWrapping="Wrap" HorizontalAlignment="Stretch" Margin="2,0,0,0"/>
                                            </StackPanel>
                                        </Grid>
                                        <Grid Grid.Row="1" Height="Auto" x:Name="MaxBitrateLimiterGrid" VerticalAlignment="Stretch" Grid.Column="1">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition/>
                                                <RowDefinition Height="Auto"/>
                                            </Grid.RowDefinitions>
                                            <TextBlock Height="Auto" HorizontalAlignment="Left" Margin="0,0,0,0" x:Name="LimitMaxBitrateHeader" VerticalAlignment="Stretch" Foreground="{StaticResource metal_grey}" Text="Limit Max Bitrate" TextWrapping="Wrap"/>
                                            <Slider Height="Auto" HorizontalAlignment="Stretch" x:Name="LimitMaxBitrateSlider" VerticalAlignment="Top" Width="Auto" Grid.Row="1" Orientation="Horizontal" Style="{StaticResource MaxBitrateSliderStyle}"/>
                                            <StackPanel Height="Auto" x:Name="MaxBitrateLimiterLabelStackPanel" Width="Auto" Orientation="Horizontal" HorizontalAlignment="Right" d:LayoutOverrides="Width, Height">
                                                <TextBlock Height="Auto" HorizontalAlignment="Stretch" x:Name="MaxBitrateLimiterLabel" Width="Auto" Foreground="{StaticResource metal_grey}" Text="0" TextWrapping="Wrap"/>
                                                <TextBlock Height="Auto" x:Name="MaxBitrateLimiterLabelUnits" Width="Auto" Foreground="{StaticResource metal_grey}" Text="kbps" TextWrapping="Wrap" HorizontalAlignment="Stretch" Margin="2,0,0,0"/>
                                            </StackPanel>
                                        </Grid>
                                    </Grid>
                                </Border>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

                <Style TargetType="player:BitrateGraphControl">
                    <Setter Property="Background" Value="White"/>
                    <Setter Property="HorizontalAlignment" Value="Stretch"/>
                    <Setter Property="VerticalAlignment" Value="Stretch"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:BitrateGraphControl">
                                <Border Margin="0,0,0,0" BorderThickness="2,2,2,2" CornerRadius="5,5,5,5" Opacity="{TemplateBinding Opacity}" x:Name="BitrateGraphBorder">
                                    <Border.BorderBrush>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FF767676"/>
                                            <GradientStop Color="#002F2F2F" Offset="1"/>
                                            <GradientStop Color="#FF494949" Offset="0.628"/>
                                        </LinearGradientBrush>
                                    </Border.BorderBrush>
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#4C767676"/>
                                            <GradientStop Color="#7F2F2F2F" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Canvas x:Name="BitrateGraphCanvas" />
                                </Border>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

                <Style TargetType="player:FramerateGraphControl">
                    <Setter Property="Background" Value="White"/>
                    <Setter Property="HorizontalAlignment" Value="Stretch"/>
                    <Setter Property="VerticalAlignment" Value="Stretch"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:FramerateGraphControl">
                                <Border BorderThickness="2,2,2,2" CornerRadius="5,5,5,5" Opacity="1" x:Name="FrameRateGraphBorder" Height="Auto" Width="Auto">
                                    <Border.Resources>
                                        <LinearGradientBrush x:Key="metal_grey" EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FF8A8A8A"/>
                                            <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Resources>
                                    <Border.BorderBrush>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FF767676"/>
                                            <GradientStop Color="#002F2F2F" Offset="1"/>
                                            <GradientStop Color="#FF494949" Offset="0.628"/>
                                        </LinearGradientBrush>
                                    </Border.BorderBrush>
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#4C767676"/>
                                            <GradientStop Color="#7F2F2F2F" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Canvas Height="Auto" x:Name="FrameRateGraphCanvas" Width="Auto">
                                        <TextBlock Height="Auto" Width="Auto" Text="0" TextWrapping="Wrap" x:Name="MinFrameRateLabel" Margin="5,80,0,0" FontSize="10" Foreground="{StaticResource metal_grey}"/>
                                        <TextBlock Height="Auto" x:Name="MaxFrameRateLabel" Width="Auto" Text="Max" TextWrapping="NoWrap" Margin="5,0,0,0" FontSize="10" Foreground="{StaticResource metal_grey}"/>
                                        <StackPanel Margin="80,0,0,0" x:Name="FrameRateLabelStackPanel" Width="Auto" Orientation="Horizontal">
                                            <TextBlock Height="Auto" x:Name="FrameRateLabelHeader" Width="Auto" FontSize="10" Foreground="{StaticResource metal_grey}" Text="Frame Rate (" TextWrapping="NoWrap"/>
                                            <TextBlock Height="Auto" x:Name="FrameRateLabel" Width="Auto" FontSize="10" Foreground="{StaticResource metal_grey}" Text="0" TextWrapping="NoWrap" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            <TextBlock Height="Auto" x:Name="FrameRateLabelFooter" Width="Auto" FontSize="10" Foreground="{StaticResource metal_grey}" Text=") fps" TextWrapping="NoWrap" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                        </StackPanel>
                                    </Canvas>

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

                <LinearGradientBrush x:Key="blueGradient" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF6D7C8E" Offset="0"/>
                    <GradientStop Color="#FFA7B9C7" Offset="0.991"/>
                </LinearGradientBrush>
                <Style x:Key="PlaylistBackButton" TargetType="RepeatButton">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="RepeatButton">
                                <Grid Width="50">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_normal" d:IsOptimized="True"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused"/>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Border x:Name="Background" BorderThickness="{TemplateBinding BorderThickness}">
                                        <Grid Margin="1">
                                            <Path x:Name="path_disable" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Height="26.842" Margin="0.194,2.03900003433228,0,2.11899995803833" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#FFADADAD" StrokeThickness="0.5" UseLayoutRounding="False" VerticalAlignment="Center" Width="22.984" Fill="#FF525252">
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform Angle="-180"/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                            <Path x:Name="path_pressed" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Margin="0.194000005722046,2.039,0,2.119" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#FF0A2031" StrokeThickness="0.5" UseLayoutRounding="False" Width="22.984" Visibility="Collapsed" VerticalAlignment="Center" Height="26.842">
                                                <Path.Fill>
                                                    <LinearGradientBrush EndPoint="1.089,0.5" StartPoint="-0.089,0.5">
                                                        <GradientStop Color="#FF0E1F33"/>
                                                        <GradientStop Color="#FF273D54" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Path.Fill>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform Angle="-180"/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                            <Path x:Name="path_hover" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Height="26.842" Margin="0.194,2.03900003433228,0,2.11899995803833" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#FF0A2031" StrokeThickness="0.5" UseLayoutRounding="False" VerticalAlignment="Center" Width="22.984" Visibility="Collapsed">
                                                <Path.Fill>
                                                    <LinearGradientBrush EndPoint="1.089,0.5" StartPoint="-0.089,0.5">
                                                        <GradientStop Color="#FF243347" Offset="0.004"/>
                                                        <GradientStop Color="#FF6F7E8F" Offset="0.991"/>
                                                    </LinearGradientBrush>
                                                </Path.Fill>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform Angle="-180"/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                            <Path x:Name="path_normal" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Height="26.842" Margin="0.194,2.03900003433228,0,2.11899995803833" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="Black" StrokeThickness="0.5" UseLayoutRounding="False" VerticalAlignment="Center" Width="22.984">
                                                <Path.Fill>
                                                    <LinearGradientBrush EndPoint="1.089,0.5" StartPoint="-0.089,0.5">
                                                        <GradientStop Color="#FF222B36"/>
                                                        <GradientStop Color="#FF4C555F" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Path.Fill>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform Angle="-180"/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                    </Border>
                                    <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="Collapsed"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="PlaylistFowardButton" TargetType="RepeatButton">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="RepeatButton">
                                <Grid Width="50">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="path_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused"/>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Border x:Name="Background" BorderThickness="{TemplateBinding BorderThickness}">
                                        <Grid Margin="1">
                                            <Path x:Name="path_disable" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Height="26.842" Margin="0.194,2.03900003433228,0,2.11899995803833" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#FFADADAD" StrokeThickness="0.5" UseLayoutRounding="False" VerticalAlignment="Center" Width="22.984" Fill="#FF525252" Visibility="Collapsed">
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                            <Path x:Name="path_pressed" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Height="26.842" Margin="0.194,2.03900003433228,0,2.11899995803833" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#FF0A2031" StrokeThickness="0.5" UseLayoutRounding="False" VerticalAlignment="Center" Width="22.984" Visibility="Collapsed">
                                                <Path.Fill>
                                                    <LinearGradientBrush EndPoint="1.089,0.5" StartPoint="-0.089,0.5">
                                                        <GradientStop Color="#FF0E1F33"/>
                                                        <GradientStop Color="#FF273D54" Offset="0.996"/>
                                                    </LinearGradientBrush>
                                                </Path.Fill>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                            <Path x:Name="path_hover" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Height="26.842" Margin="0.194,2.03900003433228,0,2.11899995803833" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="#FF0A2031" StrokeThickness="0.5" UseLayoutRounding="False" VerticalAlignment="Center" Width="22.984" Visibility="Collapsed">
                                                <Path.Fill>
                                                    <LinearGradientBrush EndPoint="1.089,0.5" StartPoint="-0.089,0.5">
                                                        <GradientStop Color="#FF243347" Offset="0.004"/>
                                                        <GradientStop Color="#FF6F7E8F" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Path.Fill>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                            <Path x:Name="path_normal" Data="M4.375,2.1940789 L4.375,29.036263 L27.358028,15.628002 z" HorizontalAlignment="Center" Height="26.842" Margin="0.194,2.03900003433228,0,2.11899995803833" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="Black" StrokeThickness="0.5" UseLayoutRounding="False" VerticalAlignment="Center" Width="22.984">
                                                <Path.Fill>
                                                    <LinearGradientBrush EndPoint="1.089,0.5" StartPoint="-0.089,0.5">
                                                        <GradientStop Color="#FF222B36"/>
                                                        <GradientStop Color="#FF4C555F" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Path.Fill>
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform/>
                                                        <SkewTransform/>
                                                        <RotateTransform/>
                                                        <TranslateTransform X="-0.18099925231933156" Y="0.00020094604492015833"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

                <Style x:Key="ChapterButton" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid Width="70">
                                    <Grid.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FF505356" Offset="0.944"/>
                                            <GradientStop Color="#FFE5F3FD" Offset="0.97"/>
                                            <GradientStop Color="#FFADADAD" Offset="0.315"/>
                                            <GradientStop Color="#FF212121"/>
                                            <GradientStop Color="#FFADADAD" Offset="0.595"/>
                                        </LinearGradientBrush>
                                    </Grid.Background>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                                                    <ColorAnimation Duration="0" To="#CCFFFFFF" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient"/>
                                                    <ColorAnimation Duration="0" To="#7FFFFFFF" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient"/>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundGradient">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <ColorAnimation Duration="0" To="#FF6DBDD1" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Background"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundAnimation"/>
                                                    <ColorAnimation Duration="0" To="#8CFFFFFF" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient"/>
                                                    <ColorAnimation Duration="0" To="#3FFFFFFF" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient"/>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundGradient">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Border_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Border_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="Border_pressed" Fill="White">
                                        <Rectangle.Stroke>
                                            <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
                                                <GradientStop Color="Black" Offset="0"/>
                                                <GradientStop Color="#FFBABABA" Offset="0.991"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Stroke>
                                    </Rectangle>
                                    <Rectangle x:Name="Border_normal" Fill="White">
                                        <Rectangle.Stroke>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="Black" Offset="0"/>
                                                <GradientStop Color="#FF8F8F8F" Offset="0.259"/>
                                                <GradientStop Color="#FF3F3F3F" Offset="1"/>
                                                <GradientStop Color="#FF8F8F8F" Offset="0.81"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Stroke>
                                    </Rectangle>
                                    <Border x:Name="Background" BorderThickness="{TemplateBinding BorderThickness}" Background="White">
                                        <Grid Background="White">
                                            <Border x:Name="BackgroundAnimation" Background="#FF448DCA" Opacity="0"/>
                                            <Rectangle x:Name="Background_pressed">
                                                <Rectangle.Fill>
                                                    <LinearGradientBrush EndPoint="0.7,0" StartPoint="0.7,1">
                                                        <GradientStop Color="#FF1D556A" Offset="0.534"/>
                                                        <GradientStop Color="#FF4391B1" Offset="1"/>
                                                        <GradientStop Color="#FF4B8AA5" Offset="0.013"/>
                                                    </LinearGradientBrush>
                                                </Rectangle.Fill>
                                            </Rectangle>
                                            <Rectangle x:Name="Background_hover">
                                                <Rectangle.Fill>
                                                    <LinearGradientBrush EndPoint="0.7,1" StartPoint="0.7,0">
                                                        <GradientStop Color="#FF258DB4" Offset="0.448"/>
                                                        <GradientStop Color="#FFBCE6F8" Offset="0.991"/>
                                                        <GradientStop Color="#FFC1DBE5" Offset="0.931"/>
                                                        <GradientStop Color="#FF9AD3EB"/>
                                                        <GradientStop Color="#FF78BCD6" Offset="0.138"/>
                                                    </LinearGradientBrush>
                                                </Rectangle.Fill>
                                            </Rectangle>
                                            <Rectangle x:Name="BackgroundGradient">
                                                <Rectangle.Fill>
                                                    <LinearGradientBrush EndPoint="0.7,0" StartPoint="0.7,1">
                                                        <GradientStop Color="White" Offset="0.53"/>
                                                        <GradientStop Color="#FFBCE6F8" Offset="0.991"/>
                                                        <GradientStop Color="#FFC1DBE5" Offset="0.75"/>
                                                        <GradientStop Color="#FF82ACBE" Offset="0.009"/>
                                                        <GradientStop Color="#FFC1DBE5" Offset="0.272"/>
                                                    </LinearGradientBrush>
                                                </Rectangle.Fill>
                                            </Rectangle>
                                        </Grid>
                                    </Border>
                                    <Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/>
                                    <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                                    <TextBlock Margin="0" TextWrapping="Wrap" Text="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="10.667" FontFamily="Trebuchet MS"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <LinearGradientBrush x:Key="btnStrokeGradient" StartPoint="0.425624,0.0254586" EndPoint="0.425624,0.970389">
                    <GradientStop Color="#FF000000" Offset="0.648536"/>
                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                    <GradientStop Color="#FF808080" Offset="0.979079"/>
                </LinearGradientBrush>
                <LinearGradientBrush x:Key="btnBaseGradient" StartPoint="0.605263,0" EndPoint="0.605263,1">
                    <GradientStop Color="#FF9EA1A5" Offset="0"/>
                    <GradientStop Color="#FF757B82" Offset="0.025765"/>
                    <GradientStop Color="#FF4C555F" Offset="0.04"/>
                    <GradientStop Color="#FF4B535D" Offset="0.26178"/>
                    <GradientStop Color="#FF363F49" Offset="0.350785"/>
                    <GradientStop Color="#FF222B36" Offset="0.497382"/>
                    <GradientStop Color="#FF222B36" Offset="0.890052"/>
                    <GradientStop Color="#FF51555B" Offset="0.963351"/>
                    <GradientStop Color="#FF808080" Offset="1"/>
                </LinearGradientBrush>
                <LinearGradientBrush x:Key="btnHoverFilled" EndPoint="0.605,1" StartPoint="0.605,0">
                    <LinearGradientBrush.RelativeTransform>
                        <MatrixTransform/>
                    </LinearGradientBrush.RelativeTransform>
                    <GradientStop Color="#FFAFBCD0" Offset="0"/>
                    <GradientStop Color="#FF6F7E8F" Offset="0.06"/>
                    <GradientStop Color="#FF4B5B70" Offset="0.272"/>
                    <GradientStop Color="#FF243347" Offset="0.516"/>
                    <GradientStop Color="#FF28384D" Offset="0.884"/>
                    <GradientStop Color="#FF5F6D81" Offset="0.956"/>
                    <GradientStop Color="#FF8C95A1" Offset="1"/>
                </LinearGradientBrush>
                <LinearGradientBrush x:Key="iconGradient" StartPoint="0.566244,-0.00625034" EndPoint="0.566244,1.01881">
                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                    <GradientStop Color="#FFDDF2FB" Offset="0.171548"/>
                    <GradientStop Color="#FFBCE6F8" Offset="0.48954"/>
                    <GradientStop Color="#FFDDF2FB" Offset="0.81605"/>
                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                </LinearGradientBrush>

                <ControlTemplate x:Key="ValidationToolTipTemplate">
                    <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
                        <Grid.RenderTransform>
                            <TranslateTransform x:Name="xform" X="-25"/>
                        </Grid.RenderTransform>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="OpenStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="0"/>
                                    <VisualTransition GeneratedDuration="0:0:0.2" To="Open">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="xform">
                                                <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root">
                                                <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualTransition>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Closed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Open">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="X" Storyboard.TargetName="xform">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border Background="#052A2E31" CornerRadius="5" Margin="4,4,-4,-4"/>
                        <Border Background="#152A2E31" CornerRadius="4" Margin="3,3,-3,-3"/>
                        <Border Background="#252A2E31" CornerRadius="3" Margin="2,2,-2,-2"/>
                        <Border Background="#352A2E31" CornerRadius="2" Margin="1,1,-1,-1"/>
                        <Border Background="#FFDC000C" CornerRadius="2"/>
                        <Border CornerRadius="2">
                            <TextBlock Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding (Validation.Errors)[0].ErrorContent}" UseLayoutRounding="false"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
                <SolidColorBrush x:Key="iconDisableBorder" Color="#FF6E6E6E"/>
                <LinearGradientBrush x:Key="btnBasePressed" StartPoint="0.605263,0" EndPoint="0.605263,1">
                    <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                    <GradientStop Color="#FF3B5470" Offset="0.056"/>
                    <GradientStop Color="#FF3F5F80" Offset="0.288"/>
                    <GradientStop Color="#FF193250" Offset="0.496"/>
                    <GradientStop Color="#FF222B36" Offset="0.875"/>
                    <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                    <GradientStop Color="#FF2F3E54" Offset="1"/>
                </LinearGradientBrush>
                <Style TargetType="player:ScrollableListBox">
                    <Setter Property="Padding" Value="1"/>
                    <Setter Property="Background" Value="#FFFFFFFF"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="HorizontalContentAlignment" Value="Left"/>
                    <Setter Property="VerticalContentAlignment" Value="Top"/>
                    <Setter Property="IsTabStop" Value="False"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="TabNavigation" Value="Once"/>
                    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:ScrollableListBox">
                                <Grid Background="{StaticResource blueGradient}">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="ValidationStates">
                                            <VisualState x:Name="Valid"/>
                                            <VisualState x:Name="InvalidUnfocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="InvalidFocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>True</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CanScrollRightStates">
                                            <VisualState x:Name="CanScrollRight"/>
                                            <VisualState x:Name="CannotScrollRight">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="ForwardButtonElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CanScrollLeftStates">
                                            <VisualState x:Name="CannotScrollLeft">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="BackButtonElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="CanScrollLeft"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <RepeatButton x:Name="BackButtonElement" VerticalAlignment="Center" MinWidth="75" Style="{StaticResource PlaylistBackButton}" HorizontalAlignment="Left" Width="35"/>
                                    <Border Background="{StaticResource blueGradient}" Grid.Column="1">
                                        <ScrollViewer x:Name="ScrollViewer" BorderBrush="{x:Null}" Background="{StaticResource blueGradient}" TabNavigation="{TemplateBinding TabNavigation}" Padding="{TemplateBinding Padding}">
                                            <ItemsPresenter/>
                                        </ScrollViewer>
                                    </Border>
                                    <RepeatButton x:Name="ForwardButtonElement" VerticalAlignment="Center" Content="Forward" Grid.Column="2" MinWidth="75" HorizontalAlignment="Right" Style="{StaticResource PlaylistFowardButton}" Width="35"/>
                                    <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Visibility="Collapsed">
                                        <ToolTipService.ToolTip>
                                            <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                                <ToolTip.Triggers>
                                                    <EventTrigger RoutedEvent="Canvas.Loaded">
                                                        <BeginStoryboard>
                                                            <Storyboard>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                                    <DiscreteObjectKeyFrame KeyTime="0">
                                                                        <DiscreteObjectKeyFrame.Value>
                                                                            <System:Boolean>true</System:Boolean>
                                                                        </DiscreteObjectKeyFrame.Value>
                                                                    </DiscreteObjectKeyFrame>
                                                                </ObjectAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </BeginStoryboard>
                                                    </EventTrigger>
                                                </ToolTip.Triggers>
                                            </ToolTip>
                                        </ToolTipService.ToolTip>
                                        <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
                                            <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="-1,3,0,0"/>
                                            <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="-1,3,0,0"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="ItemsPanel">
                        <Setter.Value>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"/>
                            </ItemsPanelTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style TargetType="player:PlaylistListBox">
                    <Setter Property="Padding" Value="1"/>
                    <Setter Property="Background" Value="#FFFFFFFF"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="HorizontalContentAlignment" Value="Left"/>
                    <Setter Property="VerticalContentAlignment" Value="Top"/>
                    <Setter Property="IsTabStop" Value="False"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="TabNavigation" Value="Once"/>
                    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:PlaylistListBox">
                                <Grid Background="{StaticResource blueGradient}">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="ValidationStates">
                                            <VisualState x:Name="Valid"/>
                                            <VisualState x:Name="InvalidUnfocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="InvalidFocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>True</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CanScrollRightStates">
                                            <VisualState x:Name="CanScrollRight"/>
                                            <VisualState x:Name="CannotScrollRight">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ForwardButtonElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CanScrollLeftStates">
                                            <VisualState x:Name="CannotScrollLeft">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackButtonElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="CanScrollLeft"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <RepeatButton x:Name="BackButtonElement" VerticalAlignment="Center" MinWidth="75" Style="{StaticResource PlaylistBackButton}" HorizontalAlignment="Left" Width="35"/>
                                    <Border Background="{StaticResource blueGradient}" Grid.Column="1">
                                        <ScrollViewer x:Name="ScrollViewer" BorderBrush="{x:Null}" BorderThickness="0" Background="{StaticResource blueGradient}" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}">
                                            <ItemsPresenter/>
                                        </ScrollViewer>
                                    </Border>
                                    <RepeatButton x:Name="ForwardButtonElement" VerticalAlignment="Center" Content="Forward" Grid.Column="2" MinWidth="75" HorizontalAlignment="Right" Style="{StaticResource PlaylistFowardButton}" Width="35"/>
                                    <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Visibility="Collapsed">
                                        <ToolTipService.ToolTip>
                                            <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                                <ToolTip.Triggers>
                                                    <EventTrigger RoutedEvent="Canvas.Loaded">
                                                        <BeginStoryboard>
                                                            <Storyboard>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                                    <DiscreteObjectKeyFrame KeyTime="0">
                                                                        <DiscreteObjectKeyFrame.Value>
                                                                            <System:Boolean>true</System:Boolean>
                                                                        </DiscreteObjectKeyFrame.Value>
                                                                    </DiscreteObjectKeyFrame>
                                                                </ObjectAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </BeginStoryboard>
                                                    </EventTrigger>
                                                </ToolTip.Triggers>
                                            </ToolTip>
                                        </ToolTipService.ToolTip>
                                        <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
                                            <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="-1,3,0,0"/>
                                            <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="-1,3,0,0"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="ItemsPanel">
                        <Setter.Value>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"/>
                            </ItemsPanelTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="AudioStreamMenu" TargetType="ComboBox">
                    <Setter Property="Padding" Value="6,2,25,2"/>
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="HorizontalContentAlignment" Value="Left"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="TabNavigation" Value="Once"/>
                    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ComboBox">
                                <Grid Height="28">
                                    <Grid.Resources>
                                        <Style x:Name="comboToggleStyle" TargetType="ToggleButton">
                                            <Setter Property="Foreground" Value="#FF333333"/>
                                            <Setter Property="Background" Value="#FF1F3B53"/>
                                            <Setter Property="BorderBrush">
                                                <Setter.Value>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                                        <GradientStop Color="#FF718597" Offset="0.375"/>
                                                        <GradientStop Color="#FF617584" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Setter.Value>
                                            </Setter>
                                            <Setter Property="BorderThickness" Value="1"/>
                                            <Setter Property="Padding" Value="3"/>
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="ToggleButton">
                                                        <Grid Height="28">
                                                            <VisualStateManager.VisualStateGroups>
                                                                <VisualStateGroup x:Name="CommonStates">
                                                                    <VisualState x:Name="Normal">
                                                                        <Storyboard>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_pressed">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_hover">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </VisualState>
                                                                    <VisualState x:Name="MouseOver">
                                                                        <Storyboard>
                                                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundOverlay">
                                                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                                            </DoubleAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_pressed">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_hover">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Visible</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </VisualState>
                                                                    <VisualState x:Name="Pressed">
                                                                        <Storyboard>
                                                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BackgroundOverlay2">
                                                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                                            </DoubleAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#E5FFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#BCFFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#6BFFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_hover">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_pressed">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Visible</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </VisualState>
                                                                    <VisualState x:Name="Disabled">
                                                                        <Storyboard>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_pressed">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackgroundBlue_hover">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </VisualState>
                                                                </VisualStateGroup>
                                                                <VisualStateGroup x:Name="CheckStates">
                                                                    <VisualState x:Name="Checked">
                                                                        <Storyboard>
                                                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BackgroundOverlay3">
                                                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                                            </DoubleAnimationUsingKeyFrames>
                                                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BackgroundGradient2">
                                                                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                                            </DoubleAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient2">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#E5FFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient2">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#BCFFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient2">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#6BFFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BackgroundGradient2">
                                                                                <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="Highlight">
                                                                                <EasingColorKeyFrame KeyTime="0" Value="Black"/>
                                                                            </ColorAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Highlight">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </VisualState>
                                                                    <VisualState x:Name="Unchecked">
                                                                        <Storyboard>
                                                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Highlight">
                                                                                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                                            </DoubleAnimationUsingKeyFrames>
                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Highlight">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Collapsed</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </VisualState>
                                                                </VisualStateGroup>
                                                                <VisualStateGroup x:Name="FocusStates">
                                                                    <VisualState x:Name="Focused">
                                                                        <Storyboard>
                                                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement">
                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                        <Visibility>Visible</Visibility>
                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                </DiscreteObjectKeyFrame>
                                                                            </ObjectAnimationUsingKeyFrames>
                                                                        </Storyboard>
                                                                    </VisualState>
                                                                    <VisualState x:Name="Unfocused"/>
                                                                </VisualStateGroup>
                                                            </VisualStateManager.VisualStateGroups>
                                                            <Rectangle x:Name="Background" Fill="{TemplateBinding Background}" RadiusY="3" RadiusX="3" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" d:IsHidden="True"/>
                                                            <Rectangle x:Name="BackgroundOverlay" Fill="#FF448DCA" Opacity="0" RadiusY="3" RadiusX="3" Stroke="#00000000" StrokeThickness="{TemplateBinding BorderThickness}" d:IsHidden="True"/>
                                                            <Rectangle x:Name="BackgroundOverlay2" Fill="#FF448DCA" Opacity="0" RadiusY="3" RadiusX="3" Stroke="#00000000" StrokeThickness="{TemplateBinding BorderThickness}" d:IsHidden="True"/>
                                                            <Rectangle x:Name="BackgroundGradient" Margin="{TemplateBinding BorderThickness}" RadiusY="2" RadiusX="2" Stroke="#FFFFFFFF" StrokeThickness="1" d:IsHidden="True">
                                                                <Rectangle.Fill>
                                                                    <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
                                                                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                                        <GradientStop Color="#F9FFFFFF" Offset="0.375"/>
                                                                        <GradientStop Color="#E5FFFFFF" Offset="0.625"/>
                                                                        <GradientStop Color="#C6FFFFFF" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Rectangle.Fill>
                                                            </Rectangle>
                                                            <Rectangle x:Name="BackgroundOverlay3" Fill="#FF448DCA" Opacity="0" RadiusY="3" RadiusX="3" Stroke="#00000000" StrokeThickness="{TemplateBinding BorderThickness}" d:IsHidden="True"/>
                                                            <Rectangle x:Name="BackgroundGradient2" Margin="{TemplateBinding BorderThickness}" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FFFFFFFF" StrokeThickness="1" d:IsHidden="True">
                                                                <Rectangle.Fill>
                                                                    <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
                                                                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                                        <GradientStop Color="#F9FFFFFF" Offset="0.375"/>
                                                                        <GradientStop Color="#E5FFFFFF" Offset="0.625"/>
                                                                        <GradientStop Color="#C6FFFFFF" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Rectangle.Fill>
                                                            </Rectangle>
                                                            <Rectangle x:Name="BackgroundBlue_pressed" Stroke="{StaticResource btnStrokeGradient}" Margin="0" Visibility="Collapsed">
                                                                <Rectangle.Fill>
                                                                    <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                                        <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                                        <GradientStop Color="#FF3B5470" Offset="0.056"/>
                                                                        <GradientStop Color="#FF3F5F80" Offset="0.288"/>
                                                                        <GradientStop Color="#FF193250" Offset="0.496"/>
                                                                        <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                                        <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                                        <GradientStop Color="#FF2F3E54" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Rectangle.Fill>
                                                            </Rectangle>
                                                            <Rectangle x:Name="BackgroundBlue_hover" Stroke="{StaticResource btnStrokeGradient}" Margin="0" Fill="{StaticResource btnBasePressed}" Visibility="Collapsed"/>
                                                            <Rectangle x:Name="BackgroundBlue" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBaseGradient}" Margin="0"/>
                                                            <Rectangle x:Name="Highlight" IsHitTestVisible="false" Margin="{TemplateBinding BorderThickness}" RadiusY="2" RadiusX="2" Stroke="#FF2A2A2A" StrokeThickness="1" Visibility="Collapsed"/>
                                                            <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                                            <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" RadiusY="3.5" RadiusX="3.5" Stroke="#FF6DBDD1" StrokeThickness="1" Visibility="Collapsed"/>
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Grid.Resources>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver"/>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="DisabledVisualElement">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value=".55"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusVisualElement">
                                                        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusVisualElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unfocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusVisualElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusVisualElement">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="FocusedDropDown">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="PopupBorder">
                                                        <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="ValidationStates">
                                            <VisualState x:Name="Valid"/>
                                            <VisualState x:Name="InvalidUnfocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="InvalidFocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>True</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Border x:Name="ContentPresenterBorder">
                                        <Grid>
                                            <ToggleButton x:Name="DropDownToggle" BorderBrush="{StaticResource btnBaseGradient}" Background="{TemplateBinding Background}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Margin="0" Style="{StaticResource comboToggleStyle}" VerticalAlignment="Stretch" BorderThickness="0" Foreground="#FFF30B0B">
                                                <Path x:Name="BtnArrow" Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z " HorizontalAlignment="Right" Height="6" Margin="0,0,6,0" Stretch="Uniform" Width="10" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" Fill="{StaticResource iconGradient}" Stroke="#FF2A2A2A" StrokeThickness="0.5">
                                                    <Path.RenderTransform>
                                                        <TransformGroup>
                                                            <ScaleTransform/>
                                                            <SkewTransform/>
                                                            <RotateTransform Angle="180"/>
                                                            <TranslateTransform/>
                                                        </TransformGroup>
                                                    </Path.RenderTransform>
                                                </Path>
                                            </ToggleButton>
                                            <ContentPresenter x:Name="ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                                                <TextBlock Text=" " Foreground="{StaticResource iconGradient}"/>
                                            </ContentPresenter>
                                        </Grid>
                                    </Border>
                                    <Rectangle x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="false" Opacity="0"/>
                                    <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                                    <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="1" CornerRadius="1" Visibility="Collapsed">
                                        <ToolTipService.ToolTip>
                                            <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                                <ToolTip.Triggers>
                                                    <EventTrigger RoutedEvent="Canvas.Loaded">
                                                        <BeginStoryboard>
                                                            <Storyboard>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                                    <DiscreteObjectKeyFrame KeyTime="0">
                                                                        <DiscreteObjectKeyFrame.Value>
                                                                            <System:Boolean>true</System:Boolean>
                                                                        </DiscreteObjectKeyFrame.Value>
                                                                    </DiscreteObjectKeyFrame>
                                                                </ObjectAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </BeginStoryboard>
                                                    </EventTrigger>
                                                </ToolTip.Triggers>
                                            </ToolTip>
                                        </ToolTipService.ToolTip>
                                        <Grid Background="Transparent" HorizontalAlignment="Right" Height="12" Margin="1,-4,-4,0" VerticalAlignment="Top" Width="12">
                                            <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="1,3,0,0"/>
                                            <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="1,3,0,0"/>
                                        </Grid>
                                    </Border>
                                    <Popup x:Name="Popup">
                                        <Border x:Name="PopupBorder" BorderBrush="#FF2A2A2A" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" HorizontalAlignment="Stretch" Height="Auto" Background="#FFCE33F7">
                                            <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Padding="1" Background="{StaticResource btnBaseGradient}" BorderBrush="#FFD500FF" Foreground="#FFF9FF00">
                                                <ItemsPresenter/>
                                            </ScrollViewer>
                                        </Border>
                                    </Popup>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="PlaylistSelectionElementScrollViewerStyle" TargetType="ScrollViewer">
                    <Setter Property="HorizontalContentAlignment" Value="Left"/>
                    <Setter Property="VerticalContentAlignment" Value="Top"/>
                    <Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
                    <Setter Property="Padding" Value="4"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ScrollViewer">
                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2">
                                    <Grid Background="{TemplateBinding Background}">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="*"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <ScrollContentPresenter x:Name="ScrollContentPresenter" Cursor="{TemplateBinding Cursor}" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="{TemplateBinding Padding}"/>
                                        <Rectangle Grid.Column="1" Fill="#FFE9EEF4" Grid.Row="1"/>
                                        <ScrollBar x:Name="VerticalScrollBar" Grid.Column="1" IsTabStop="False" Maximum="{TemplateBinding ScrollableHeight}" Margin="0,-1,-1,-1" Minimum="0" Orientation="Vertical" Grid.Row="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{TemplateBinding VerticalOffset}" ViewportSize="{TemplateBinding ViewportHeight}" Width="18"/>
                                        <ScrollBar x:Name="HorizontalScrollBar" Grid.Column="0" Height="18" IsTabStop="False" Maximum="{TemplateBinding ScrollableWidth}" Margin="-1,0,-1,-1" Minimum="0" Orientation="Horizontal" Grid.Row="1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{TemplateBinding HorizontalOffset}" ViewportSize="{TemplateBinding ViewportWidth}"/>
                                    </Grid>
                                </Border>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <SolidColorBrush x:Key="iconPressedBorder" Color="#FF192E37"/>
                <SolidColorBrush x:Key="iconPressedFill" Color="#FF547C83"/>
                <SolidColorBrush x:Key="iconDisableFill" Color="#FF525252"/>
                <SolidColorBrush x:Key="iconHover" Color="#FFD7F5FD"/>
                <Style x:Key="AudioStreamSelectionElementContainerStyle" TargetType="ComboBoxItem">
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="HorizontalContentAlignment" Value="Left"/>
                    <Setter Property="VerticalContentAlignment" Value="Top"/>
                    <Setter Property="Background" Value="Transparent"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="TabNavigation" Value="Local"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ComboBoxItem">
                                <Grid Background="#00000000">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value=".35"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="SelectionStates">
                                            <VisualState x:Name="Unselected"/>
                                            <VisualState x:Name="Selected">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor2">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value=".75"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="fillColor" Fill="#FFBADDE9" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1" OpacityMask="Black"/>
                                    <Rectangle x:Name="fillColor2" Fill="#FFBADDE9" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1"/>
                                    <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
                                    <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="#FF6DBDD1" StrokeThickness="1" Visibility="Collapsed"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

                <LinearGradientBrush x:Key="btnFilledHover" StartPoint="0.605263,0" EndPoint="0.605263,1">
                    <GradientStop Color="#FF434952" Offset="0.013"/>
                    <GradientStop Color="#FFD7E3F1" Offset="0.06"/>
                    <GradientStop Color="#FF87A6C8" Offset="0.371"/>
                    <GradientStop Color="#FF2E5485" Offset="0.72"/>
                    <GradientStop Color="#FF35455E" Offset="0.909"/>
                    <GradientStop Color="#FF2F3747" Offset="0.948"/>
                </LinearGradientBrush>
                <Style x:Key="PlaylistButton" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid VerticalAlignment="Bottom" Height="25" Opacity="0.75">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver"/>
                                            <VisualState x:Name="Pressed"/>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3" d:IsHidden="True"/>
                                    <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1" d:IsHidden="True"/>
                                    <Rectangle Fill="{StaticResource blueGradient}" Margin="0"/>
                                    <TextBlock x:Name="content" TextWrapping="Wrap" Text="{TemplateBinding Content}" Margin="0" d:LayoutOverrides="Width, Height" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontFamily="Trebuchet MS" FontSize="12"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="ClosePlaylistButton" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver"/>
                                            <VisualState x:Name="Pressed"/>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" IsHitTestVisible="false" Opacity="0" RadiusY="3" RadiusX="3"/>
                                    <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2" RadiusX="2" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                                    <Path x:Name="background" Data="M7.2799339,0.45841447 C10.491932,0.45841447 22.785646,0.51231235 27.576687,0.51231235 C32.367729,0.51231235 35.534691,2.5373702 35.534691,6.1722879 C35.534691,9.8072052 35.534691,18.340185 35.534691,21.341179 C35.534691,24.342173 33.470394,27.336502 28.858856,27.336502 C24.247318,27.336502 11.965229,27.15176 8.1261663,27.15176 C4.2871037,27.15176 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 4.0679369,0.45841447 7.2799339,0.45841447 z" Margin="0,3.5" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" HorizontalAlignment="Center" Width="28" Height="28">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605262994766235,1" StartPoint="0.605262994766235,0">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FFC0C5CA" Offset="0"/>
                                                <GradientStop Color="#FF757B82" Offset="0.056"/>
                                                <GradientStop Color="#FF4C555F" Offset="0.086"/>
                                                <GradientStop Color="#FF4B535D" Offset="0.26178"/>
                                                <GradientStop Color="#FF363F49" Offset="0.350785"/>
                                                <GradientStop Color="#FF222B36" Offset="0.497382"/>
                                                <GradientStop Color="#FF222B36" Offset="0.890052"/>
                                                <GradientStop Color="#FF51555B" Offset="0.963351"/>
                                                <GradientStop Color="Gray" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" HorizontalAlignment="Center" Foreground="{StaticResource iconGradient}" FontSize="13.333" Margin="0,8,0,9"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="PlaylistPanel" TargetType="ListBox">
                    <Setter Property="Padding" Value="1"/>
                    <Setter Property="Background" Value="#FFFFFFFF"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="HorizontalContentAlignment" Value="Left"/>
                    <Setter Property="VerticalContentAlignment" Value="Top"/>
                    <Setter Property="IsTabStop" Value="False"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="TabNavigation" Value="Once"/>
                    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ListBox">
                                <Grid Background="{StaticResource blueGradient}">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="ValidationStates">
                                            <VisualState x:Name="Valid"/>
                                            <VisualState x:Name="InvalidUnfocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="InvalidFocused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ValidationErrorElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.TargetName="validationTooltip">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>True</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Background="{StaticResource blueGradient}">
                                        <ScrollViewer x:Name="ScrollViewer" BorderBrush="Transparent" BorderThickness="0" Background="{StaticResource blueGradient}" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}">
                                            <ItemsPresenter/>
                                        </ScrollViewer>
                                    </Border>
                                    <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Visibility="Collapsed">
                                        <ToolTipService.ToolTip>
                                            <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                                <ToolTip.Triggers>
                                                    <EventTrigger RoutedEvent="Canvas.Loaded">
                                                        <BeginStoryboard>
                                                            <Storyboard>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                                    <DiscreteObjectKeyFrame KeyTime="0">
                                                                        <DiscreteObjectKeyFrame.Value>
                                                                            <System:Boolean>true</System:Boolean>
                                                                        </DiscreteObjectKeyFrame.Value>
                                                                    </DiscreteObjectKeyFrame>
                                                                </ObjectAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </BeginStoryboard>
                                                    </EventTrigger>
                                                </ToolTip.Triggers>
                                            </ToolTip>
                                        </ToolTipService.ToolTip>
                                        <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
                                            <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="-1,3,0,0"/>
                                            <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="-1,3,0,0"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <DataTemplate x:Key="VersionInformationTemplate">
                    <Grid Background="White">
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                        </Grid.RowDefinitions>
                        <ListBox ItemsSource="{Binding AssemblyNames}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <TextBlock TextWrapping="Wrap" Text="{Binding}" d:LayoutOverrides="Width, Height" FontWeight="Bold"/>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                        <ListBox ItemsSource="{Binding PluginMetadata}" Grid.Row="1" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <TextBlock TextWrapping="Wrap" Text="{Binding PluginName}" d:LayoutOverrides="Width, Height" FontWeight="Bold"/>
                                        <TextBlock Grid.Row="1" TextWrapping="Wrap" Text="{Binding PluginDescription}" d:LayoutOverrides="Width, Height"/>
                                        <TextBlock Grid.Row="2" TextWrapping="Wrap" Text="{Binding PluginVersion}" d:LayoutOverrides="Width, Height"/>
                                    </Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left" Margin="5">
                            <TextBlock Text="Player ID: " FontWeight="Bold"/>
                            <TextBox Text="{Binding PlayerId}" IsReadOnly="True"/>
                        </StackPanel>
                    </Grid>
                </DataTemplate>
                <DataTemplate x:Key="PlaylistItemTemplate">
                    <Grid Height="145" HorizontalAlignment="Stretch" MaxWidth="350" Width="100">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" MinHeight="27.0"/>
                            <RowDefinition Height="Auto" MinHeight="33.0"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" MinWidth="21"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Image HorizontalAlignment="Stretch" Margin="4,10,0,0" MaxWidth="144" MaxHeight="108" VerticalAlignment="Top" Grid.RowSpan="2" Source="{Binding ThumbSource}" Grid.ColumnSpan="1" Height="75"/>
                        <TextBlock Foreground="White" Height="Auto" Margin="8,5,0,0" Grid.ColumnSpan="1" FontWeight="Bold" Text="{Binding Title}" TextWrapping="Wrap" Grid.Column="1" VerticalAlignment="Center" FontFamily="Trebuchet MS"/>
                        <TextBlock Foreground="White" Height="Auto" Margin="8,5,0,0" VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" Text="{Binding Description}" TextWrapping="Wrap" FontFamily="Trebuchet MS"/>
                    </Grid>
                </DataTemplate>
                <DataTemplate x:Key="ChapterItemTemplate">
                    <Grid HorizontalAlignment="Stretch" MaxWidth="350">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" MinHeight="27.0"/>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" MinHeight="33.0"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" MinWidth="21"/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Image HorizontalAlignment="Stretch" Margin="4,10,0,0" MaxWidth="144" MaxHeight="108" VerticalAlignment="Top" Grid.RowSpan="3" Source="{Binding ThumbSource}" Grid.ColumnSpan="1"/>
                        <TextBlock Foreground="White" Height="Auto" Margin="8,0,0,0" Grid.ColumnSpan="1" FontWeight="Bold" Grid.Row="0" Text="{Binding Title}" TextWrapping="Wrap" Grid.Column="1" VerticalAlignment="Center"/>
                        <TextBlock Foreground="White" Height="Auto" Margin="8,0,0,0" Grid.ColumnSpan="1" FontWeight="Bold" Grid.Row="1" Text="{Binding PositionText}" TextWrapping="Wrap" Grid.Column="1" VerticalAlignment="Center"/>
                        <TextBlock Foreground="White" Height="Auto" Margin="8,0,0,0" VerticalAlignment="Top" Grid.Column="2" Grid.Row="2" Text="{Binding Description}" TextWrapping="Wrap"/>
                    </Grid>
                </DataTemplate>



                <Style x:Key="NextChapterButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid d:DesignWidth="28" d:DesignHeight="28">
                                    <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>

                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="MouseOverBorder" Margin="1" Background="#33FAF3F3" Opacity="0"/>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="PreviousChapterButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid d:DesignWidth="28" d:DesignHeight="28">
                                    <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>

                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="MouseOverBorder" Margin="1" Background="#33FAF3F3" Opacity="0"/>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="ChapterDisplayToggleButtonStyle" TargetType="ToggleButton">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Grid d:DesignWidth="28" d:DesignHeight="28">
                                    <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>

                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="MouseOverBorder" Margin="1" Background="#33FAF3F3" Opacity="0"/>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="NextPlaylistItemButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid d:DesignWidth="28" d:DesignHeight="28">
                                    <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>

                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="MouseOverBorder" Margin="1" Background="#33FAF3F3" Opacity="0"/>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="PreviousPlaylistItemButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid d:DesignWidth="28" d:DesignHeight="28">
                                    <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>

                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="MouseOverBorder" Margin="1" Background="#33FAF3F3" Opacity="0"/>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="PlaylistDisplayToggleButtonStyle" TargetType="ToggleButton">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Grid d:DesignWidth="28" d:DesignHeight="28">
                                    <Border x:Name="Background" BorderBrush="#FF434343" BorderThickness="1">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>

                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="MouseOverBorder" Margin="1" Background="#33FAF3F3" Opacity="0"/>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="SlowMotionButtonStyle" TargetType="ToggleButton">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Grid d:DesignWidth="28" d:DesignHeight="28" Width="36" Cursor="Hand">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="FFGliff">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="-0.079"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FocusVisualElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CheckStates">
                                            <VisualState x:Name="Checked">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse_checked">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_checked">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unchecked">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse_checked">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Indeterminate"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path x:Name="background_pressed" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
                                        <Path.Stroke>
                                            <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="Black" Offset="0.648536"/>
                                                <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                <GradientStop Color="Gray" Offset="0.979079"/>
                                            </LinearGradientBrush>
                                        </Path.Stroke>
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,1" StartPoint="0.605,0">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform Angle="-180"/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <Path x:Name="background_hover" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF3B5470" Offset="0.056"/>
                                                <GradientStop Color="#FF3F5F80" Offset="0.288"/>
                                                <GradientStop Color="#FF193250" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                        <Path.Stroke>
                                            <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="Black" Offset="0.648536"/>
                                                <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                <GradientStop Color="Gray" Offset="0.979079"/>
                                            </LinearGradientBrush>
                                        </Path.Stroke>
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform Angle="-180"/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <Path x:Name="background" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5">
                                        <Path.Stroke>
                                            <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="Black" Offset="0.648536"/>
                                                <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                <GradientStop Color="Gray" Offset="0.979079"/>
                                            </LinearGradientBrush>
                                        </Path.Stroke>
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF9EA1A5" Offset="0"/>
                                                <GradientStop Color="#FF757B82" Offset="0.025765"/>
                                                <GradientStop Color="#FF4C555F" Offset="0.041885"/>
                                                <GradientStop Color="#FF4B535D" Offset="0.26178"/>
                                                <GradientStop Color="#FF363F49" Offset="0.350785"/>
                                                <GradientStop Color="#FF222B36" Offset="0.497382"/>
                                                <GradientStop Color="#FF222B36" Offset="0.890052"/>
                                                <GradientStop Color="#FF51555B" Offset="0.963351"/>
                                                <GradientStop Color="Gray" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform Angle="-180"/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <Path x:Name="background_checked" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
                                        <Path.Stroke>
                                            <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="Black" Offset="0.648536"/>
                                                <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                <GradientStop Color="Gray" Offset="0.979079"/>
                                            </LinearGradientBrush>
                                        </Path.Stroke>
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,1" StartPoint="0.605,0">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform Angle="-180"/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <Ellipse x:Name="ellipse_checked" Fill="{StaticResource iconHover}" Margin="10,8" StrokeThickness="0.5" Opacity="0.35" Visibility="Collapsed">
                                        <Ellipse.Effect>
                                            <BlurEffect Radius="10"/>
                                        </Ellipse.Effect>
                                    </Ellipse>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="FFGliff_disable" Fill="{StaticResource iconDisableFill}" Stretch="Fill" Height="7.006" VerticalAlignment="Center" UseLayoutRounding="False" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M2.380996,0 L6.1346784,-0.005638204 L6.1699524,7.9648356 L2.380996,7.9623399 z" HorizontalAlignment="Center" Width="13.891" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5"/>

                                    <Path x:Name="FFGliff_pressed" Fill="{StaticResource iconPressedFill}" Stretch="Fill" Height="7.006" VerticalAlignment="Center" UseLayoutRounding="False" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M2.380996,0 L6.1346784,-0.005638204 L6.1699524,7.9648356 L2.380996,7.9623399 z" HorizontalAlignment="Center" Width="13.891" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5"/>

                                    <Ellipse x:Name="ellipse" Fill="{StaticResource iconHover}" Margin="10,8" StrokeThickness="0.5" Opacity="0.35" Visibility="Collapsed">
                                        <Ellipse.Effect>
                                            <BlurEffect Radius="10"/>
                                        </Ellipse.Effect>
                                    </Ellipse>
                                    <Path x:Name="FFGliff" Fill="{StaticResource iconGradient}" Stretch="Fill" Height="7.006" VerticalAlignment="Center" UseLayoutRounding="False" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M2.380996,0 L6.1346784,-0.005638204 L6.1699524,7.9648356 L2.380996,7.9623399 z" HorizontalAlignment="Center" Width="13.891" Stroke="#FF2A2A2A" StrokeThickness="0.5" RenderTransformOrigin="0.5,0.5">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="CaptionDisplayToggleButtonStyle" TargetType="ToggleButton">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Grid d:DesignWidth="28" d:DesignHeight="28" Width="36">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textBlock_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textBlock_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="10"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textBlock_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CheckStates">
                                            <VisualState x:Name="Checked">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_checked">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_checked">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unchecked">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_checked">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Indeterminate"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path x:Name="background_pressed" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Width="36" Height="28">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path x:Name="background_hover" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Fill="{StaticResource btnBasePressed}" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Width="36" Height="28"/>
                                    <Path x:Name="background" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Fill="{StaticResource btnBaseGradient}" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Width="36" Height="28"/>
                                    <Path x:Name="background_checked" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Width="36" Height="28" Visibility="Collapsed">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>

                                    <Rectangle x:Name="rec_checked" Fill="{StaticResource iconHover}" Margin="10,8" Stroke="{StaticResource iconHover}" StrokeThickness="0.5">
                                        <Rectangle.Effect>
                                            <BlurEffect Radius="10"/>
                                        </Rectangle.Effect>
                                    </Rectangle>

                                    <Rectangle x:Name="rec_disable" Fill="{StaticResource iconDisableFill}" Margin="10,8" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5"/>

                                    <Rectangle x:Name="rec_pressed" Fill="{StaticResource iconPressedFill}" Margin="10,8" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5"/>

                                    <Rectangle x:Name="rec_hover" Fill="{StaticResource iconHover}" Margin="10,8" Stroke="{StaticResource iconHover}" StrokeThickness="0.5">
                                        <Rectangle.Effect>
                                            <BlurEffect Radius="10"/>
                                        </Rectangle.Effect>
                                    </Rectangle>

                                    <Rectangle x:Name="rec_normal" Fill="{StaticResource iconGradient}" Margin="10,8" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                    <TextBlock x:Name="textBlock_pressed" FontSize="8" FontFamily="Microsoft Sans Serif" Margin="12,10" TextWrapping="Wrap" Text="CC" Foreground="#FF6C6C6C"/>

                                    <TextBlock x:Name="textBlock" FontSize="8" FontFamily="Microsoft Sans Serif" Margin="12,10" TextWrapping="Wrap" Text="CC"/>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="SeekToLiveButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid d:DesignWidth="28" d:DesignHeight="28" Width="60">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="text_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="text_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="text_norm">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="text_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="text_norm">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="text_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="text_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused"/>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="Background_pressed" RadiusY="5" Stroke="{StaticResource btnStrokeGradient}" RadiusX="5" Visibility="Collapsed">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF3B5470" Offset="0.056"/>
                                                <GradientStop Color="#FF3F5F80" Offset="0.288"/>
                                                <GradientStop Color="#FF193250" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>
                                    </Rectangle>
                                    <Rectangle x:Name="Background_hover" Fill="{StaticResource btnBasePressed}" RadiusY="5" Stroke="{StaticResource btnStrokeGradient}" RadiusX="5" Visibility="Collapsed"/>
                                    <Rectangle x:Name="Background" Fill="{StaticResource btnBaseGradient}" RadiusY="5" Stroke="{StaticResource btnStrokeGradient}" RadiusX="5"/>
                                    <Rectangle x:Name="Background_checked" RadiusY="5" Stroke="{StaticResource btnStrokeGradient}" RadiusX="5" Visibility="Collapsed">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF3B5470" Offset="0.056"/>
                                                <GradientStop Color="#FF3F5F80" Offset="0.288"/>
                                                <GradientStop Color="#FF193250" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>
                                    </Rectangle>
                                    <Border x:Name="MouseOverBorder" Margin="1" Background="#33FAF3F3" Opacity="0" Visibility="Collapsed"/>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0" Visibility="Collapsed"/>
                                    <TextBlock x:Name="text_pressed" Margin="9,7" TextWrapping="Wrap" Text="Go Live" Foreground="{StaticResource iconPressedFill}" Visibility="Collapsed" FontFamily="Trebuchet MS"/>

                                    <Ellipse x:Name="ellipse" Fill="#FFA8EAFB" Margin="5,8" Opacity="0.35" StrokeThickness="0" Visibility="Collapsed">
                                        <Ellipse.Effect>
                                            <BlurEffect Radius="15"/>
                                        </Ellipse.Effect>
                                    </Ellipse>
                                    <TextBlock x:Name="text_disable" Margin="9,7" TextWrapping="Wrap" Text="Go Live" Foreground="#FF525252" Visibility="Collapsed" FontFamily="Trebuchet MS"/>
                                    <Ellipse x:Name="ellipse_checked" Fill="#FFA8EAFB" Margin="5,10" Opacity="0.3" StrokeThickness="0" Visibility="Collapsed">
                                        <Ellipse.Effect>
                                            <BlurEffect Radius="15"/>
                                        </Ellipse.Effect>
                                    </Ellipse>
                                    <TextBlock x:Name="text_norm" Margin="9,7" TextWrapping="Wrap" Text="Go Live" Foreground="#FFBCE6F8" FontFamily="Trebuchet MS"/>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="FFButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid x:Name="grid" d:DesignWidth="20" d:DesignHeight="20" Height="28" Width="36" Cursor="Hand">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FFGliff_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FFGliff">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="background_pressed" Stroke="{StaticResource btnStrokeGradient}">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>
                                    </Rectangle>
                                    <Rectangle x:Name="background_hover" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBasePressed}"/>
                                    <Rectangle x:Name="background" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBaseGradient}"/>
                                    <Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="FFGliff_disable" Fill="{StaticResource iconDisableFill}" Stretch="Fill" Height="6.834" VerticalAlignment="Center" UseLayoutRounding="False" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M0,0 L8.8618002,3.87006 L0,7.9623399 z" HorizontalAlignment="Center" Width="16" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5"/>
                                    <Path x:Name="FFGliff_pressed" Fill="{StaticResource iconPressedFill}" Stretch="Fill" Height="6.834" VerticalAlignment="Center" UseLayoutRounding="False" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M0,0 L8.8618002,3.87006 L0,7.9623399 z" HorizontalAlignment="Center" Width="16" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5"/>
                                    <Path x:Name="FFGliff_hover" Fill="{StaticResource iconHover}" Stretch="Fill" Height="6.834" VerticalAlignment="Center" UseLayoutRounding="False" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M0,0 L8.8618002,3.87006 L0,7.9623399 z" HorizontalAlignment="Center" Width="16" Stroke="{StaticResource iconHover}" StrokeThickness="0.5">
                                        <Path.Effect>
                                            <BlurEffect Radius="10"/>
                                        </Path.Effect>
                                    </Path>
                                    <Path x:Name="FFGliff" Fill="{StaticResource iconGradient}" Stretch="Fill" Height="6.833" VerticalAlignment="Center" UseLayoutRounding="False" Data="M9.0500488,1.016548E-15 L17.495911,4.0864868 L9.0500488,7.9783788 z M0,0 L8.8618002,3.87006 L0,7.9623399 z" HorizontalAlignment="Center" Width="16" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="PlayerGraphButtonStyle" TargetType="ToggleButton">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Grid d:DesignWidth="28" d:DesignHeight="28" Width="36">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textBlock_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textBlock_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textBlock_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CheckStates">
                                            <VisualState x:Name="Checked">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_checked">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unchecked"/>
                                            <VisualState x:Name="Indeterminate"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path x:Name="background_pressed" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Width="36" Height="28">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path x:Name="background_hover" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Fill="{StaticResource btnBasePressed}" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Width="36" Height="28"/>
                                    <Rectangle x:Name="background" Fill="{StaticResource btnBaseGradient}" Stroke="{StaticResource btnStrokeGradient}"/>
                                    <Path x:Name="background_checked" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Width="36" Height="28" Visibility="Collapsed">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Rectangle x:Name="FocusVisualElement" StrokeThickness="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                    <TextBlock x:Name="textBlock_pressed" FontSize="8" FontFamily="Microsoft Sans Serif" Margin="12,10" TextWrapping="Wrap" Text="{TemplateBinding Content}" Foreground="White" HorizontalAlignment="Center"/>

                                    <TextBlock x:Name="textBlock" FontSize="8" FontFamily="Microsoft Sans Serif" Margin="12,10" TextWrapping="Wrap" Text="{TemplateBinding Content}" HorizontalAlignment="Center" Foreground="White"/>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="RWButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid x:Name="grid" d:DesignWidth="20" d:DesignHeight="20" Height="28" Width="36" Cursor="Hand">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_press">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_press">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_press">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="RRGliff_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RRGliff_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="background_pressed" Stroke="{StaticResource btnStrokeGradient}">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>
                                    </Rectangle>
                                    <Rectangle x:Name="background_hover" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBasePressed}"/>
                                    <Rectangle x:Name="background" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBaseGradient}"/>
                                    <Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="RRGliff_disable" Fill="{StaticResource iconDisableFill}" Stretch="Fill" Height="7" VerticalAlignment="Center" UseLayoutRounding="False" Data="M2,0.018981887 L2,8.0189819 L-6.5137792,4.009491 z M11.01534,0.047732037 L11.01534,8.0100718 L2.1159408,4.009491 z" HorizontalAlignment="Center" Width="16" Margin="0" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5"/>
                                    <Path x:Name="RRGliff_press" Fill="{StaticResource iconPressedFill}" Stretch="Fill" Height="7" VerticalAlignment="Center" UseLayoutRounding="False" Data="M2,0.018981887 L2,8.0189819 L-6.5137792,4.009491 z M11.01534,0.047732037 L11.01534,8.0100718 L2.1159408,4.009491 z" HorizontalAlignment="Center" Width="16" Margin="0" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5"/>
                                    <Path x:Name="RRGliff_hover" Fill="#FFD7F5FD" Stretch="Fill" Height="7" VerticalAlignment="Center" UseLayoutRounding="False" Data="M2,0.018981887 L2,8.0189819 L-6.5137792,4.009491 z M11.01534,0.047732037 L11.01534,8.0100718 L2.1159408,4.009491 z" HorizontalAlignment="Center" Width="16" Margin="0" Stroke="{StaticResource iconHover}" StrokeThickness="0.5">
                                        <Path.Effect>
                                            <BlurEffect Radius="10"/>
                                        </Path.Effect>
                                    </Path>
                                    <Path x:Name="RRGliff_normal" Fill="{StaticResource iconGradient}" Stretch="Fill" Height="7" VerticalAlignment="Center" UseLayoutRounding="False" Data="M2,0.018981887 L2,8.0189819 L-6.5137792,4.009491 z M11.01534,0.047732037 L11.01534,8.0100718 L2.1159408,4.009491 z" HorizontalAlignment="Center" Width="16" Margin="0" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="FullScreenElementStyle" TargetType="ToggleButton">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Grid x:Name="MainLayout" Width="36" Height="28">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_pressed" d:IsOptimized="True"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_disable" d:IsOptimized="True"/>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="small_rec">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1.512"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="small_rec">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1.334"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="small_rec">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="2.048"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="small_rec">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="-1.002"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="small_rec1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1.512"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="small_rec1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1.334"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="small_rec1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="2.048"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="small_rec1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="-1.002"/>
                                                        <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_norm" d:IsOptimized="True"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_pressed" d:IsOptimized="True"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_hover" d:IsOptimized="True"/>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_norm">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_norm1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_checked1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_pressed" d:IsOptimized="True"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_disable" d:IsOptimized="True"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_hover" d:IsOptimized="True"/>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="large_rec1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="small_rec1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_disable" d:IsOptimized="True"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_norm" d:IsOptimized="True"/>
                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rec_hover" d:IsOptimized="True"/>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_norm">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="large_rec">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_checked1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_norm1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_hover1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec_pressed1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CheckStates">
                                            <VisualState x:Name="Checked">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="small_rec">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BaseState">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="CheckedState">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unchecked"/>
                                            <VisualState x:Name="Indeterminate"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid x:Name="BaseState">
                                        <Path x:Name="background_pressed" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28" Fill="{StaticResource btnBasePressed}" Visibility="Collapsed">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Path x:Name="background_hover" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28" Visibility="Collapsed">
                                            <Path.Fill>
                                                <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                    <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                    <GradientStop Color="#FF3B5470" Offset="0.056"/>
                                                    <GradientStop Color="#FF3F5F80" Offset="0.288"/>
                                                    <GradientStop Color="#FF193250" Offset="0.496"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                    <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                    <GradientStop Color="#FF2F3E54" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Path.Fill>
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Path x:Name="background" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28">
                                            <Path.Fill>
                                                <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                    <GradientStop Color="#FF9EA1A5" Offset="0"/>
                                                    <GradientStop Color="#FF757B82" Offset="0.025765"/>
                                                    <GradientStop Color="#FF4C555F" Offset="0.041885"/>
                                                    <GradientStop Color="#FF4B535D" Offset="0.26178"/>
                                                    <GradientStop Color="#FF363F49" Offset="0.350785"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.497382"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.890052"/>
                                                    <GradientStop Color="#FF51555B" Offset="0.963351"/>
                                                    <GradientStop Color="Gray" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Path.Fill>
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Path x:Name="background_checked" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28" Fill="{StaticResource btnBasePressed}" Visibility="Collapsed">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Rectangle x:Name="rec_disable" Fill="{StaticResource iconDisableFill}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width" Visibility="Collapsed"/>
                                        <Rectangle x:Name="rec_pressed" Fill="{StaticResource iconPressedFill}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width" Visibility="Collapsed"/>
                                        <Rectangle x:Name="rec_hover" Fill="{StaticResource iconHover}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="{StaticResource iconHover}" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width" Visibility="Collapsed">
                                            <Rectangle.Effect>
                                                <BlurEffect Radius="10"/>
                                            </Rectangle.Effect>
                                        </Rectangle>
                                        <Rectangle x:Name="rec_norm" Fill="{StaticResource iconGradient}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="#FF2A2A2A" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width"/>
                                        <Rectangle x:Name="small_rec" Fill="#FF2D2D2D" Margin="12,12,16,10" RenderTransformOrigin="0.5,0.5" StrokeThickness="0.5">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="large_rec" Fill="#FF2D2D2D" Margin="12,10" RenderTransformOrigin="0.5,0.5" StrokeThickness="0.5" Visibility="Collapsed">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                    </Grid>
                                    <Grid x:Name="CheckedState" Visibility="Collapsed">
                                        <Path x:Name="background_pressed1" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28" Fill="{StaticResource btnBasePressed}" Visibility="Collapsed">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Path x:Name="background_hover1" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28" Visibility="Collapsed">
                                            <Path.Fill>
                                                <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                    <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                    <GradientStop Color="#FF3B5470" Offset="0.056"/>
                                                    <GradientStop Color="#FF3F5F80" Offset="0.288"/>
                                                    <GradientStop Color="#FF193250" Offset="0.496"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                    <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                    <GradientStop Color="#FF2F3E54" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Path.Fill>
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Path x:Name="background1" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28" Visibility="Collapsed">
                                            <Path.Fill>
                                                <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                    <GradientStop Color="#FF9EA1A5" Offset="0"/>
                                                    <GradientStop Color="#FF757B82" Offset="0.025765"/>
                                                    <GradientStop Color="#FF4C555F" Offset="0.041885"/>
                                                    <GradientStop Color="#FF4B535D" Offset="0.26178"/>
                                                    <GradientStop Color="#FF363F49" Offset="0.350785"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.497382"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.890052"/>
                                                    <GradientStop Color="#FF51555B" Offset="0.963351"/>
                                                    <GradientStop Color="Gray" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Path.Fill>
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Path x:Name="background_checked1" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" Height="28" Fill="{StaticResource btnBasePressed}">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.426,0.025" StartPoint="0.426,0.97">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="Black" Offset="0.648536"/>
                                                    <GradientStop Color="#FF404040" Offset="0.965857"/>
                                                    <GradientStop Color="Gray" Offset="0.979079"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform Angle="-180"/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Rectangle x:Name="rec_disable1" Fill="{StaticResource iconDisableFill}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width" Visibility="Collapsed"/>
                                        <Rectangle x:Name="rec_pressed1" Fill="{StaticResource iconPressedFill}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width" Visibility="Collapsed"/>
                                        <Rectangle x:Name="rec_hover1" Fill="{StaticResource iconHover}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="{StaticResource iconHover}" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width">
                                            <Rectangle.Effect>
                                                <BlurEffect Radius="10"/>
                                            </Rectangle.Effect>
                                        </Rectangle>
                                        <Rectangle x:Name="rec_norm1" Fill="{StaticResource iconGradient}" HorizontalAlignment="Right" Height="12" Margin="0,8,10,8" Stroke="#FF2A2A2A" StrokeThickness="0.5" Width="16" d:LayoutOverrides="Width"/>
                                        <Rectangle x:Name="small_rec1" Fill="#FF2D2D2D" Margin="12,12,16,10" RenderTransformOrigin="0.5,0.5" StrokeThickness="0.5">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                        <Rectangle x:Name="large_rec1" Fill="#FF2D2D2D" Margin="12,10" RenderTransformOrigin="0.5,0.5" StrokeThickness="0.5" Visibility="Collapsed">
                                            <Rectangle.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform/>
                                                    <SkewTransform/>
                                                    <RotateTransform/>
                                                    <TranslateTransform/>
                                                </TransformGroup>
                                            </Rectangle.RenderTransform>
                                        </Rectangle>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="ReplayButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid x:Name="grid" d:DesignWidth="20" d:DesignHeight="20" Height="28" Width="36" Cursor="Hand">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <EasingColorKeyFrame KeyTime="0" Value="#FF2A2A2A"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_press">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_press">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1.097"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1.097"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0.599"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Thickness>0</Thickness>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ReplayGlif_press">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <HorizontalAlignment>Center</HorizontalAlignment>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <VerticalAlignment>Center</VerticalAlignment>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <HorizontalAlignment>Center</HorizontalAlignment>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)" Storyboard.TargetName="ReplayGlif_normal">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <VerticalAlignment>Center</VerticalAlignment>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)" Storyboard.TargetName="ReplayGlif_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <HorizontalAlignment>Center</HorizontalAlignment>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)" Storyboard.TargetName="ReplayGlif_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <VerticalAlignment>Center</VerticalAlignment>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_press">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ReplayGlif_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path x:Name="background_press" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Height="28">
                                        <Path.Fill>
                                            <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                <LinearGradientBrush.RelativeTransform>
                                                    <MatrixTransform/>
                                                </LinearGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                <GradientStop Color="#FF2F3E54" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path x:Name="background_hover" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Fill="{StaticResource btnBasePressed}" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Height="28"/>
                                    <Path x:Name="background" Data="M6.7046142,0.38709676 C9.9166117,0.38709676 25.741869,0.38709676 35.534691,0.38709676 L35.534691,27.336502 C25.924776,27.336502 10.54401,27.336502 6.7049475,27.336502 C2.865885,27.336502 0.45451552,23.967836 0.45451552,21.382723 C0.45451552,18.797609 0.50134999,9.6319437 0.50134999,6.1063566 C0.50134999,2.5807748 3.4926171,0.38709676 6.7046142,0.38709676 z" Fill="{StaticResource btnBaseGradient}" Margin="0" Stretch="Fill" Stroke="{StaticResource btnStrokeGradient}" UseLayoutRounding="False" Height="28"/>
                                    <Rectangle x:Name="ButtonRolloverCommon" Margin="1" Opacity="0" Fill="#33FCF9F9"/>
                                    <Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="ReplayGlif_disable" Width="12.3228" Height="10.2799" Stretch="Fill" Data="F1 M 63.3016,673.814C 65.187,673.814 66.7117,672.337 66.7117,670.515C 66.7117,668.693 65.187,667.216 63.3063,667.216C 61.6946,667.216 60.3445,668.301 59.9911,669.758L 61.7847,669.758L 58.8941,673.779L 56.2897,669.758L 58.0574,669.758C 58.4355,667.278 60.6415,665.375 63.3063,665.375C 66.2368,665.375 68.6124,667.677 68.6124,670.515C 68.6124,673.354 66.2368,675.655 63.3063,675.655L 63.3016,673.814 Z " Fill="{StaticResource iconDisableFill}" StrokeThickness="0.5" Stroke="{StaticResource iconDisableBorder}" Margin="11.838,8.86" UseLayoutRounding="False"/>
                                    <Path x:Name="ReplayGlif_press" Width="12.3228" Height="10.2799" Stretch="Fill" Data="F1 M 63.3016,673.814C 65.187,673.814 66.7117,672.337 66.7117,670.515C 66.7117,668.693 65.187,667.216 63.3063,667.216C 61.6946,667.216 60.3445,668.301 59.9911,669.758L 61.7847,669.758L 58.8941,673.779L 56.2897,669.758L 58.0574,669.758C 58.4355,667.278 60.6415,665.375 63.3063,665.375C 66.2368,665.375 68.6124,667.677 68.6124,670.515C 68.6124,673.354 66.2368,675.655 63.3063,675.655L 63.3016,673.814 Z " Fill="{StaticResource iconPressedFill}" StrokeThickness="0.5" Stroke="{StaticResource iconPressedBorder}" Margin="10,8" UseLayoutRounding="False"/>
                                    <Path x:Name="ReplayGlif_hover" Width="12.3228" Height="10.2799" Stretch="Fill" Data="F1 M 63.3016,673.814C 65.187,673.814 66.7117,672.337 66.7117,670.515C 66.7117,668.693 65.187,667.216 63.3063,667.216C 61.6946,667.216 60.3445,668.301 59.9911,669.758L 61.7847,669.758L 58.8941,673.779L 56.2897,669.758L 58.0574,669.758C 58.4355,667.278 60.6415,665.375 63.3063,665.375C 66.2368,665.375 68.6124,667.677 68.6124,670.515C 68.6124,673.354 66.2368,675.655 63.3063,675.655L 63.3016,673.814 Z " Fill="#FFD7F5FD" StrokeThickness="0.5" Stroke="#FFD7F5FD" Margin="10,8" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5">


                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform/>
                                                <SkewTransform/>
                                                <RotateTransform/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                        <Path.Effect>
                                            <BlurEffect Radius="10"/>
                                        </Path.Effect>
                                    </Path>
                                    <Path x:Name="ReplayGlif_normal" Width="12.3228" Height="10.2799" Canvas.Left="56.2897" Canvas.Top="665.375" Stretch="Fill" Data="F1 M 63.3016,673.814C 65.187,673.814 66.7117,672.337 66.7117,670.515C 66.7117,668.693 65.187,667.216 63.3063,667.216C 61.6946,667.216 60.3445,668.301 59.9911,669.758L 61.7847,669.758L 58.8941,673.779L 56.2897,669.758L 58.0574,669.758C 58.4355,667.278 60.6415,665.375 63.3063,665.375C 66.2368,665.375 68.6124,667.677 68.6124,670.515C 68.6124,673.354 66.2368,675.655 63.3063,675.655L 63.3016,673.814 Z " Fill="{StaticResource iconGradient}" StrokeThickness="0.5" Stroke="#FF2A2A2A"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="GoLiveButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid x:Name="grid" d:DesignWidth="20" d:DesignHeight="20" Height="28" Width="28">
                                    <Rectangle x:Name="ButtonBkg" Stroke="#FF434343">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>

                                    </Rectangle>
                                    <Rectangle x:Name="ButtonRolloverCommon" Margin="1" Opacity="0" Fill="#33FCF9F9"/>
                                    <Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="ReplayGlif" Width="12.3228" Height="10.2799" Canvas.Left="56.2897" Canvas.Top="665.375" Stretch="Fill" Fill="#FFE1E1E1" Data="F1 M 63.3016,673.814C 65.187,673.814 66.7117,672.337 66.7117,670.515C 66.7117,668.693 65.187,667.216 63.3063,667.216C 61.6946,667.216 60.3445,668.301 59.9911,669.758L 61.7847,669.758L 58.8941,673.779L 56.2897,669.758L 58.0574,669.758C 58.4355,667.278 60.6415,665.375 63.3063,665.375C 66.2368,665.375 68.6124,667.677 68.6124,670.515C 68.6124,673.354 66.2368,675.655 63.3063,675.655L 63.3016,673.814 Z " Opacity="0.4"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="CCButtonStyle" TargetType="Button">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="Foreground" Value="#FF000000"/>
                    <Setter Property="Padding" Value="3"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Button">
                                <Grid x:Name="grid" d:DesignWidth="20" d:DesignHeight="20" Height="28" Width="28">
                                    <Rectangle x:Name="ButtonBkg" Stroke="#FF434343">
                                        <Rectangle.Fill>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Rectangle.Fill>

                                    </Rectangle>
                                    <Rectangle x:Name="ButtonRolloverCommon" Margin="1" Opacity="0" Fill="#33FCF9F9"/>
                                    <Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="ReplayGlif" Width="12.3228" Height="10.2799" Canvas.Left="56.2897" Canvas.Top="665.375" Stretch="Fill" Fill="#FFE1E1E1" Data="F1 M 63.3016,673.814C 65.187,673.814 66.7117,672.337 66.7117,670.515C 66.7117,668.693 65.187,667.216 63.3063,667.216C 61.6946,667.216 60.3445,668.301 59.9911,669.758L 61.7847,669.758L 58.8941,673.779L 56.2897,669.758L 58.0574,669.758C 58.4355,667.278 60.6415,665.375 63.3063,665.375C 66.2368,665.375 68.6124,667.677 68.6124,670.515C 68.6124,673.354 66.2368,675.655 63.3063,675.655L 63.3016,673.814 Z " Opacity="0.4"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>





                <Style x:Key="ThumbStyle" TargetType="Thumb">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Thumb">
                                <Grid x:Name="MainLayout" d:DesignWidth="14.188" d:DesignHeight="15.37">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Focused">
                                                <Storyboard/>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <EasingColorKeyFrame KeyTime="00:00:00" Value="#B2FFFFFF"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.2"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ThumbPartRollover" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <EasingColorKeyFrame KeyTime="00:00:00" Value="#B2FFFFFF"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Border x:Name="ThumbPart" Cursor="Hand" Background="{StaticResource iconGradient}" BorderThickness="1" BorderBrush="#FF212121" CornerRadius="2"/>
                                    <Rectangle x:Name="ThumbPartRollover" Fill="#FF8DE6FC" Margin="1" Opacity="0" RadiusX="1" RadiusY="1"/>
                                    <Border x:Name="ThumbTexture" Cursor="Hand" BorderThickness="1" Margin="0" CornerRadius="2">
                                        <Border.Background>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Offset="0"/>
                                                <GradientStop Color="#FF2A2A2A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="ThumbTexturehighlight" Cursor="Hand" BorderThickness="1" Margin="1" Opacity="0.345" CornerRadius="1">
                                        <Border.BorderBrush>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Offset="0"/>
                                                <GradientStop Color="White" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.BorderBrush>
                                    </Border>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style TargetType="player:MarkerControl">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:MarkerControl">
                                <Grid x:Name="grid" Width="7" HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="7" ToolTipService.ToolTip="{Binding Content}" RenderTransformOrigin="0.5,0.5">
                                    <Grid.RenderTransform>
                                        <CompositeTransform/>
                                    </Grid.RenderTransform>
                                    <Grid.Projection>
                                        <PlaneProjection/>
                                    </Grid.Projection>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="StateMouseOver"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="MarkerTypes">
                                            <VisualState x:Name="timeline">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="timeline_path">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="chapter">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Path x:Name="timeline_path" Data="M0.044930875,0.044930875 L0.044930875,13.928502 L14.310663,0.067577466 z" Margin="0" Stretch="Fill" StrokeThickness="0.5" UseLayoutRounding="False" Fill="#FF8DE6FC" Stroke="#FF2A2A2A" Width="7" Height="7" HorizontalAlignment="Left" d:LayoutOverrides="HorizontalMargin" VerticalAlignment="Top" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5">
                                        <Path.RenderTransform>
                                            <CompositeTransform TranslateY="-8"/>
                                        </Path.RenderTransform>
                                    </Path>
                                    <Rectangle x:Name="rectangle" Fill="White" StrokeThickness="0.5" Width="1" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5" Height="5" Opacity="0.6">
                                        <Rectangle.RenderTransform>
                                            <CompositeTransform TranslateY="-1"/>
                                        </Rectangle.RenderTransform>
                                    </Rectangle>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style TargetType="player:PlaylistListBoxItem">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:PlaylistListBoxItem">
                                <Grid d:DesignWidth="141" d:DesignHeight="116" d:LayoutOverrides="HorizontalAlignment" Height="159" Width="207" Margin="5,0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="PlayingStates">
                                            <VisualState x:Name="IsPlaying">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="NowPlaying">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimation Duration="0" To="75" Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="image" d:IsOptimized="True"/>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="IsNotPlaying">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="NowPlaying">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FirstStates">
                                            <VisualState x:Name="IsFirst"/>
                                            <VisualState x:Name="IsNotFirst"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="LastStates">
                                            <VisualState x:Name="IsLast">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="divider_right">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="IsNotLast"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="ChapterSelectionStates">
                                            <VisualState x:Name="ChapterSelectionAllowed">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ChaptersButtonElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="ChapterSelectionNotAllowed">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ChaptersButtonElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid x:Name="divider_left" HorizontalAlignment="Left" Margin="0,40,10,30" Width="2" Grid.RowSpan="1" RenderTransformOrigin="0.5,0.5">
                                        <Grid.RenderTransform>
                                            <CompositeTransform TranslateX="-5"/>
                                        </Grid.RenderTransform>
                                        <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="Black" Offset="0.509"/>
                                                    <GradientStop Color="#FFA3B5C3" Offset="0.996"/>
                                                    <GradientStop Color="#FF79899A"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                        </Path>
                                        <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Margin="1,0,0,0" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="#FFFDFEFF" Offset="0.509"/>
                                                    <GradientStop Color="#FFA3B5C3" Offset="1"/>
                                                    <GradientStop Color="#FF79899A"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                        </Path>
                                    </Grid>
                                    <Grid Grid.Column="1" Margin="0,-1,0,0" Grid.RowSpan="1">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Image x:Name="image" Grid.RowSpan="1" offline:OfflineProperties.OfflineImageSource="{Binding ThumbSource}" Grid.Row="1" VerticalAlignment="Bottom" Margin="0,15,0,0" HorizontalAlignment="Center" Height="50"/>
                                        <TextBlock TextWrapping="Wrap" Text="{Binding Title}" d:LayoutOverrides="Height" HorizontalAlignment="Center" Foreground="#FF325C7D" Grid.Row="2" Margin="0,10,0,0" TextAlignment="Center" FontFamily="Trebuchet MS"/>
                                        <Grid x:Name="NowPlaying" Margin="0,-7,0,0" Visibility="Collapsed">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition Width="Auto"/>
                                            </Grid.ColumnDefinitions>
                                            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Now Playing" d:LayoutOverrides="Height" VerticalAlignment="Center" Foreground="#FF305B7D" FontSize="13.333" FontWeight="Bold" FontFamily="Trebuchet MS"/>
                                            <Button IsHitTestVisible="True" x:Name="ChaptersButtonElement" Content="Chapters" Width="70" Grid.Column="1" FontSize="8" Margin="0" Style="{StaticResource ChapterButton}"/>
                                        </Grid>
                                        <Rectangle Grid.RowSpan="1" Height="30" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                    </Grid>
                                    <Grid x:Name="divider_right" HorizontalAlignment="Left" Margin="0,40,0,30" Width="2" Grid.RowSpan="1" RenderTransformOrigin="0.5,0.5" Grid.Column="2" Visibility="Collapsed">
                                        <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="Black" Offset="0.509"/>
                                                    <GradientStop Color="#FFA3B5C3" Offset="0.996"/>
                                                    <GradientStop Color="#FF79899A"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                        </Path>
                                        <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Margin="1,0,0,0" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                            <Path.Stroke>
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="#FFFDFEFF" Offset="0.509"/>
                                                    <GradientStop Color="#FFA3B5C3" Offset="1"/>
                                                    <GradientStop Color="#FF79899A"/>
                                                </LinearGradientBrush>
                                            </Path.Stroke>
                                        </Path>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <ControlTemplate x:Key="ChapterSelectionElementItemTemplate" TargetType="player:PositionAwareListBoxItem">
                    <Grid d:DesignWidth="141" d:DesignHeight="116" d:LayoutOverrides="HorizontalAlignment" Height="159" Width="207" Margin="0,-5,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="LastStates">
                                <VisualState x:Name="IsLast">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="right_divider">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="IsNotLast"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="left_divider" HorizontalAlignment="Left" Margin="0,15,10,35" Width="2" Grid.RowSpan="1" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" Height="90">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform X="-2"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Black" Offset="0.509"/>
                                        <GradientStop Color="#FFA3B5C3" Offset="0.996"/>
                                        <GradientStop Color="#FF79899A"/>
                                    </LinearGradientBrush>
                                </Path.Stroke>
                            </Path>
                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Margin="1,0,0,0" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFFDFEFF" Offset="0.509"/>
                                        <GradientStop Color="#FFA3B5C3" Offset="1"/>
                                        <GradientStop Color="#FF79899A"/>
                                    </LinearGradientBrush>
                                </Path.Stroke>
                            </Path>
                        </Grid>
                        <Grid Grid.Column="1" Margin="0" Grid.RowSpan="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Image Grid.RowSpan="1" offline:OfflineProperties.OfflineImageSource="{Binding ThumbSource}" Height="50" Grid.Row="1" VerticalAlignment="Bottom" d:LayoutOverrides="Height" Margin="0,-5,0,0" HorizontalAlignment="Center"/>
                            <TextBlock TextWrapping="Wrap" Text="{Binding Title}" d:LayoutOverrides="Height" HorizontalAlignment="Center" Foreground="#FF325C7D" Grid.Row="2" Margin="0,5,0,0" TextAlignment="Center"/>
                            <Rectangle Grid.RowSpan="1" Height="30" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                        </Grid>
                        <Grid x:Name="right_divider" HorizontalAlignment="Left" Margin="10,15,0,35" Width="2" Grid.RowSpan="1" RenderTransformOrigin="0.5,0.5" Grid.Column="2" Visibility="Collapsed" VerticalAlignment="Top" Height="90">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform X="-2"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Black" Offset="0.509"/>
                                        <GradientStop Color="#FFA3B5C3" Offset="0.996"/>
                                        <GradientStop Color="#FF79899A"/>
                                    </LinearGradientBrush>
                                </Path.Stroke>
                            </Path>
                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Margin="1,0,0,0" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                <Path.Stroke>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFFDFEFF" Offset="0.509"/>
                                        <GradientStop Color="#FFA3B5C3" Offset="1"/>
                                        <GradientStop Color="#FF79899A"/>
                                    </LinearGradientBrush>
                                </Path.Stroke>
                            </Path>
                        </Grid>
                    </Grid>
                </ControlTemplate>

                <Style TargetType="player:MarkerItemsControl">
                    <Setter Property="ItemTemplate">
                        <Setter.Value>
                            <DataTemplate>
                                <player:MarkerControl HorizontalAlignment="Left" VerticalAlignment="Top" />
                            </DataTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="ItemsPanel">
                        <Setter.Value>
                            <ItemsPanelTemplate>
                                <player:MarkerItemsPanel/>
                            </ItemsPanelTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style TargetType="player:Timeline">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:Timeline">
                                <Grid x:Name="MainLayout">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.25"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver"/>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="MainLayout" Storyboard.TargetProperty="(UIElement.Opacity)" To="0.5"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.25"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Unfocused"/>
                                            <VisualState x:Name="Focused">
                                                <Storyboard/>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="LiveStates">
                                            <VisualState x:Name="Live">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HorizontalAvailableBar" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Vod">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HorizontalAvailableBar" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid x:Name="HorizontalTemplate" IsHitTestVisible="True" Background="Transparent">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Grid.Column="2" IsHitTestVisible="False">
                                            <RepeatButton.Template>
                                                <ControlTemplate>
                                                    <Rectangle Height="8" StrokeThickness="0.5">
                                                        <Rectangle.Stroke>
                                                            <LinearGradientBrush StartPoint="0.813346,0.0294187" EndPoint="0.813346,0.970588">
                                                                <GradientStop Color="#FF000000" Offset="0.447699"/>
                                                                <GradientStop Color="#FF7F7F7F" Offset="0.800973"/>
                                                                <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                                            </LinearGradientBrush>
                                                        </Rectangle.Stroke>
                                                        <Rectangle.Fill>
                                                            <LinearGradientBrush StartPoint="0.813735,7.62934e-006" EndPoint="0.813735,1">
                                                                <GradientStop Color="#FF374450" Offset="0"/>
                                                                <GradientStop Color="#FF253039" Offset="0.268319"/>
                                                                <GradientStop Color="#FF141C23" Offset="0.76569"/>
                                                            </LinearGradientBrush>
                                                        </Rectangle.Fill>
                                                    </Rectangle>
                                                </ControlTemplate>
                                            </RepeatButton.Template>
                                        </RepeatButton>
                                        <Border x:Name="HorizontalAvailableBar" Height="6" Grid.ColumnSpan="3" BorderThickness="0" Opacity="0" Margin="0" Padding="0" HorizontalAlignment="Left">
                                            <Border.BorderBrush>
                                                <LinearGradientBrush StartPoint="0.813346,0.0294187" EndPoint="0.813346,0.970588">
                                                    <GradientStop Color="#FF000000" Offset="0.447699"/>
                                                    <GradientStop Color="#FF7F7F7F" Offset="0.800973"/>
                                                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Border.BorderBrush>
                                            <Border.Background>
                                                <LinearGradientBrush StartPoint="0.339394,-0.0166667" EndPoint="0.339394,1.01667">
                                                    <GradientStop Color="#FFBCE6F8" Offset="0"/>
                                                    <GradientStop Color="#FF7496A5" Offset="0.313808"/>
                                                    <GradientStop Color="#FF2C4652" Offset="1"/>
                                                </LinearGradientBrush>

                                            </Border.Background>
                                        </Border>
                                        <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" IsTabStop="False" Grid.Column="0"  IsHitTestVisible="False">
                                            <RepeatButton.Template>
                                                <ControlTemplate>
                                                    <Rectangle Height="8" StrokeThickness="0.5">
                                                        <Rectangle.Stroke>
                                                            <LinearGradientBrush StartPoint="0.813346,0.0294187" EndPoint="0.813346,0.970588">
                                                                <GradientStop Color="#FF000000" Offset="0.447699"/>
                                                                <GradientStop Color="#FF7F7F7F" Offset="0.800973"/>
                                                                <GradientStop Color="#FFFFFFFF" Offset="1"/>
                                                            </LinearGradientBrush>
                                                        </Rectangle.Stroke>
                                                        <Rectangle.Fill>
                                                            <LinearGradientBrush StartPoint="0.666919,0" EndPoint="0.666919,1.00833">
                                                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                                                <GradientStop Color="#FFDDF2FB" Offset="0.19376"/>
                                                                <GradientStop Color="#FFBCE6F8" Offset="0.481172"/>
                                                                <GradientStop Color="#FFACD0DF" Offset="0.646463"/>
                                                                <GradientStop Color="#FF9CBAC7" Offset="0.991632"/>
                                                            </LinearGradientBrush>
                                                        </Rectangle.Fill>
                                                    </Rectangle>
                                                </ControlTemplate>
                                            </RepeatButton.Template>
                                        </RepeatButton>
                                        <player:MarkerItemsControl
                                Grid.Column="0" Grid.ColumnSpan="3" 
                                ItemsSource="{TemplateBinding Markers}"
                                StartPosition="{TemplateBinding StartPosition}"
                                EndPosition="{TemplateBinding EndPosition}"
                                LivePosition="{TemplateBinding LivePosition}"
                                IsLive="{TemplateBinding IsLive}"
                                ThumbWidth="{Binding Width, ElementName=HorizontalThumb}" RenderTransformOrigin="0.5,0.5"
                                />
                                        <Thumb x:Name="HorizontalThumb" Height="16" Style="{StaticResource ThumbStyle}" Width="9" Background="#00FFFFFF" Grid.Column="1"/>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

                <Style TargetType="player:PlayElement">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:PlayElement">
                                <Grid x:Name="MainLayout" Height="28" Width="60">
                                    <Grid.Resources>
                                        <LinearGradientBrush x:Key="NormalMode_Brush">
                                            <GradientStop Color="#ff000000" Offset="0"/>
                                            <GradientStop Color="#ffa1a1a1" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Grid.Resources>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_norm">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_hover1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path2" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path3" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path4" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_hover">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_hover1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path2" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path3" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path4" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_pressed">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_norm">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_pressed1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_norm">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_hover1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path_pressed1">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="path5_disable">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="PlayStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                                <VisualTransition From="Paused" GeneratedDuration="00:00:00.3000000"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Playing">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement1" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Paused">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement1" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ButtonPulseAnimation" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.001"/>
                                                        <EasingDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
                                                        <EasingDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Stopped">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="PlayingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="PausedElement1" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="StoppedElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="SlowMotionElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="FastForwardingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                    <DoubleAnimation Duration="0" Storyboard.TargetName="RewindingElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid x:Name="PlayControlRootElement" Margin="0" RenderTransformOrigin="0.5,0.5" Background="Transparent" Width="60">
                                        <Rectangle x:Name="background_pressed" Stroke="{StaticResource btnStrokeGradient}">
                                            <Rectangle.Fill>
                                                <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                    <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                    <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                    <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                    <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                    <GradientStop Color="#FF2F3E54" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Rectangle.Fill>
                                        </Rectangle>
                                        <Rectangle x:Name="background_hover" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBasePressed}"/>
                                        <Rectangle x:Name="background" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBaseGradient}"/>
                                        <Rectangle x:Name="ButtonPulseAnimation" Fill="#33FFFFFF" Margin="1" Opacity="0" Visibility="Collapsed"/>
                                        <Grid x:Name="PlayingElement" Opacity="0" Width="12" Height="12">
                                            <Path x:Name="path_norm" Data="M5,0 L8,0 L8,8 L5,8 z M0,0 L3,0 L3,8 L0,8 z" Fill="{StaticResource iconGradient}" Margin="0,0,0,0" Stretch="Fill" UseLayoutRounding="False"/>
                                            <Path x:Name="path_hover1" Data="M5,0 L8,0 L8,8 L5,8 z M0,0 L3,0 L3,8 L0,8 z" Fill="{StaticResource iconHover}" Margin="0,0,0,0" Opacity="0" Stretch="Fill" UseLayoutRounding="False" Stroke="{StaticResource iconHover}">
                                                <Path.Effect>
                                                    <BlurEffect Radius="10"/>
                                                </Path.Effect>
                                            </Path>
                                            <Path x:Name="path_pressed1" Data="M5,0 L8,0 L8,8 L5,8 z M0,0 L3,0 L3,8 L0,8 z" Fill="{StaticResource iconPressedFill}" Margin="0,0,0,0" Opacity="0" Stretch="Fill" UseLayoutRounding="False" Stroke="{StaticResource iconPressedBorder}"/>
                                            <Path x:Name="path5_disable" Data="M5,0 L8,0 L8,8 L5,8 z M0,0 L3,0 L3,8 L0,8 z" Fill="{StaticResource iconDisableFill}" Margin="0,0,0,0" Opacity="0" Stretch="Fill" UseLayoutRounding="False" Stroke="{StaticResource iconDisableBorder}"/>
                                        </Grid>
                                        <Grid x:Name="PausedElement1" HorizontalAlignment="Center" VerticalAlignment="Center" d:IsHidden="True">
                                            <Path x:Name="path_disable" Fill="{StaticResource iconDisableFill}" Stretch="Fill" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5" Opacity="0"/>
                                            <Path x:Name="path_pressed" Fill="{StaticResource iconPressedFill}" Stretch="Fill" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5" Opacity="0"/>
                                            <Path x:Name="path_hover" Fill="{StaticResource iconHover}" Stretch="Fill" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Stroke="{StaticResource iconHover}" StrokeThickness="0.5" Opacity="0">
                                                <Path.Effect>
                                                    <BlurEffect Radius="10"/>
                                                </Path.Effect>
                                            </Path>
                                            <Path x:Name="path" Fill="{StaticResource iconGradient}" Stretch="Fill" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                        </Grid>
                                        <Grid x:Name="StoppedElement" HorizontalAlignment="Center" VerticalAlignment="Center" d:IsHidden="True">
                                            <Path x:Name="path1" Fill="#CCFCFAFA" Stretch="Fill" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0.5" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z"/>
                                        </Grid>
                                        <Grid x:Name="SlowMotionElement" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0" RenderTransformOrigin="0.5,0.5" d:IsHidden="True">
                                            <Path x:Name="path2" Fill="#FFFCFCFC" Stretch="Fill" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0.5" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z"/>
                                        </Grid>
                                        <Grid x:Name="FastForwardingElement" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0" d:IsHidden="True">
                                            <Path x:Name="path3" Stretch="Fill" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0.5" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Fill="White"/>
                                        </Grid>
                                        <Grid x:Name="RewindingElement" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0" d:IsHidden="True">
                                            <Path x:Name="path4" Stretch="Fill" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="8" Opacity="0.5" UseLayoutRounding="False" Data="F1 M0,10 L10,5.0769281 L0.048703931,0 L0,10 z" Fill="#FFFCFCFC"/>
                                        </Grid>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="VolumeControlThumb" TargetType="Thumb">
                    <Setter Property="Background" Value="#FF1F3B53"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="IsTabStop" Value="False"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Thumb">
                                <Grid d:DesignWidth="14" d:DesignHeight="8" Width="16" Height="10">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="00:00:00.4000000"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.8"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.3"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="00:00:00.4000000"/>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="Focused"/>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Border x:Name="Background" Background="#FF858585" BorderThickness="1" BorderBrush="#FF212121">
                                        <Rectangle x:Name="rectangle" Fill="White" Margin="0" Opacity="0"/>
                                    </Border>
                                    <Border x:Name="ThumbTexture" Cursor="Hand" BorderThickness="1">
                                        <Border.Background>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Offset="0"/>
                                                <GradientStop Color="#FF2A2A2A" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>
                                    </Border>
                                    <Border x:Name="ThumbTexturehighlight" Cursor="Hand" BorderThickness="1" Opacity="0.345" Margin="1,0,1,1">
                                        <Border.BorderBrush>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Offset="0"/>
                                                <GradientStop Color="White" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.BorderBrush>
                                    </Border>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="SliderElementStyle" TargetType="Slider">
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="Maximum" Value="10"/>
                    <Setter Property="Minimum" Value="0"/>
                    <Setter Property="Value" Value="0"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                <GradientStop Color="#FF718597" Offset="0.375"/>
                                <GradientStop Color="#FF617584" Offset="1"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="IsTabStop" Value="False"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Slider">
                                <Grid x:Name="Root">
                                    <Grid.Resources>
                                        <ControlTemplate x:Key="RepeatButtonTemplate">
                                            <Grid x:Name="Root" Opacity="0" Background="Transparent"/>
                                        </ControlTemplate>
                                    </Grid.Resources>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver"/>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="HorizontalTrackRectangleDisabledOverlay" Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ThumbDisabledOverlay" Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="VerticalTrackRectangleDisabledOverlay" Storyboard.TargetProperty="Visibility">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}" d:IsHidden="True" >
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <Rectangle x:Name="TrackRectangle" Fill="#FFE6EFF7" Stroke="#FFA3AEB9" StrokeThickness="{TemplateBinding BorderThickness}" RadiusX="1" RadiusY="1" Height="3" Margin="5,0,5,0" Grid.Column="0" Grid.ColumnSpan="3"/>
                                        <Rectangle x:Name="HorizontalTrackRectangleDisabledOverlay" Fill="White" RadiusX="1" RadiusY="1" Height="3" Margin="5,0,5,0" Opacity=".55" Visibility="Collapsed" Grid.Column="0" Grid.ColumnSpan="3"/>
                                        <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Height="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="0"/>
                                        <Thumb x:Name="HorizontalThumb" Height="18" Width="11" IsTabStop="True" Grid.Column="1" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0"/>
                                        <Rectangle x:Name="ThumbDisabledOverlay" Fill="White" RadiusX="2" RadiusY="2" Width="11" Opacity=".55" Visibility="Collapsed" Grid.Column="1"/>
                                        <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Height="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="2"/>
                                    </Grid>
                                    <Grid x:Name="VerticalTemplate" Background="{TemplateBinding Background}">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="*"/>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Rectangle StrokeThickness="{TemplateBinding BorderThickness}" Margin="0,5,0,5" Width="5" Grid.Row="0" Grid.RowSpan="3" Stroke="#FF1E1E1E" Fill="#FF5F5E5E"/>
                                        <Rectangle x:Name="VerticalTrackRectangleDisabledOverlay" RadiusX="1" RadiusY="1" Margin="0,5,0,5" Width="3" Opacity=".55" Visibility="Collapsed" Grid.Row="0" Grid.RowSpan="3">
                                            <Rectangle.Fill>
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="Black" Offset="0"/>
                                                    <GradientStop Color="#FF989898" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Rectangle.Fill>
                                        </Rectangle>
                                        <RepeatButton x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" Width="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="2"/>
                                        <Thumb x:Name="VerticalThumb" Height="11" Width="18" IsTabStop="True" Grid.Row="1" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}" Style="{StaticResource VolumeControlThumb}"/>
                                        <RepeatButton x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" Width="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="0"/>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style TargetType="player:VolumeControl" >
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:VolumeControl">
                                <Grid VerticalAlignment="Bottom" Cursor="Hand" Background="Transparent" Margin="0,0,0,0" Width="36" >

                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">

                                            <VisualState x:Name="Normal">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec1_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec1_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Expanding_Border">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec1_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec1_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Expanding_Border">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0.35"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>

                                            </VisualState>
                                            <VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec1_disable">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="gWrapper">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ExpandingElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>

                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background_hover">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="background">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rec1_pressed">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Expanding_Border">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ExpandingElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ellipse">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>

                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="ExpandedStates">

                                            <VisualStateGroup.Transitions>
                                                <VisualTransition GeneratedDuration="0:0:0.3"/>
                                            </VisualStateGroup.Transitions>

                                            <VisualState x:Name="Expanded">

                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="ExpandingElement">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="100"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Expanding_Border">
                                                        <EasingColorKeyFrame KeyTime="0" Value="#FF222B36"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>

                                            </VisualState>
                                            <VisualState x:Name="Collapsed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Expanding_Border">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="MutedStates">

                                            <VisualState x:Name="Muted">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="MutedGrid">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="VolumeOn"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>


                                    <Grid x:Name="BaseElement" VerticalAlignment="Bottom" Width="36" Height="28">
                                        <Grid.Background>
                                            <LinearGradientBrush StartPoint="0.568682,0.0606061" EndPoint="0.568682,0.959596">
                                                <GradientStop Color="#FF2E2E2E" Offset="0"/>
                                                <GradientStop Color="#FF040404" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Grid.Background>
                                        <Rectangle x:Name="background_pressed" Stroke="{StaticResource btnStrokeGradient}">
                                            <Rectangle.Fill>
                                                <LinearGradientBrush EndPoint="0.605,0" StartPoint="0.605,1">
                                                    <LinearGradientBrush.RelativeTransform>
                                                        <MatrixTransform/>
                                                    </LinearGradientBrush.RelativeTransform>
                                                    <GradientStop Color="#FF4F6A8D" Offset="0.02"/>
                                                    <GradientStop Color="#FF2C3F54" Offset="0.052"/>
                                                    <GradientStop Color="#FF273D54" Offset="0.296"/>
                                                    <GradientStop Color="#FF0E1F33" Offset="0.496"/>
                                                    <GradientStop Color="#FF222B36" Offset="0.875"/>
                                                    <GradientStop Color="#FF141D2B" Offset="0.963351"/>
                                                    <GradientStop Color="#FF2F3E54" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Rectangle.Fill>
                                        </Rectangle>
                                        <Rectangle x:Name="background_hover" Stroke="{StaticResource btnStrokeGradient}" Fill="{StaticResource btnBasePressed}"/>
                                        <Rectangle x:Name="background" Fill="{StaticResource btnBaseGradient}" Stroke="{StaticResource btnStrokeGradient}"/>
                                        <Grid x:Name="speaker" Margin="9,6,9,5">
                                            <Path x:Name="rec1_disable" Data="M15.25,3.0690005 L17.75,3.0690005 L17.75,9.5690002 L15.25,9.5690002 z M11.250002,3.0690005 L13.750003,3.0690005 L13.750003,9.5690002 L11.250002,9.5690002 z M7.2499995,3.0690005 L9.75,3.0690005 L9.75,9.5690002 L7.2499995,9.5690002 z M6.2359996,0.25 L6.2213612,12.261998 L2.6505952,8.7030554 L0.25,8.6956263 L0.25320721,3.9259343 L2.6441989,3.9123263 z" Fill="{StaticResource iconDisableFill}" Margin="0,2.181,0,2.307" Stretch="Fill" Stroke="{StaticResource iconDisableBorder}" StrokeThickness="0.5" UseLayoutRounding="False" d:LayoutOverrides="HorizontalAlignment"/>
                                            <Path x:Name="rec1_pressed" Data="M15.25,3.0690005 L17.75,3.0690005 L17.75,9.5690002 L15.25,9.5690002 z M11.250002,3.0690005 L13.750003,3.0690005 L13.750003,9.5690002 L11.250002,9.5690002 z M7.2499995,3.0690005 L9.75,3.0690005 L9.75,9.5690002 L7.2499995,9.5690002 z M6.2359996,0.25 L6.2213612,12.261998 L2.6505952,8.7030554 L0.25,8.6956263 L0.25320721,3.9259343 L2.6441989,3.9123263 z" Fill="{StaticResource iconPressedFill}" Margin="0,2.181,0,2.307" Stretch="Fill" Stroke="{StaticResource iconPressedBorder}" StrokeThickness="0.5" UseLayoutRounding="False" d:LayoutOverrides="HorizontalAlignment"/>
                                            <Ellipse x:Name="ellipse" Fill="{StaticResource iconHover}" Margin="-2,1" Opacity="0" StrokeThickness="0.5">
                                                <Ellipse.Effect>
                                                    <BlurEffect Radius="10"/>
                                                </Ellipse.Effect>
                                            </Ellipse>
                                            <Path x:Name="rec1_norm" Data="M15.25,3.0690005 L17.75,3.0690005 L17.75,9.5690002 L15.25,9.5690002 z M11.250002,3.0690005 L13.750003,3.0690005 L13.750003,9.5690002 L11.250002,9.5690002 z M7.2499995,3.0690005 L9.75,3.0690005 L9.75,9.5690002 L7.2499995,9.5690002 z M6.2359996,0.25 L6.2213612,12.261998 L2.6505952,8.7030554 L0.25,8.6956263 L0.25320721,3.9259343 L2.6441989,3.9123263 z" Fill="{StaticResource iconGradient}" Margin="0,2.181,0,2.307" Stretch="Fill" Stroke="#FF2A2A2A" StrokeThickness="0.5" UseLayoutRounding="False" d:LayoutOverrides="HorizontalAlignment"/>
                                        </Grid>
                                        <Grid x:Name="MutedGrid" Margin="0,0,-1,0" Visibility="Collapsed">
                                            <Ellipse Fill="#FF888888" Margin="16,8,9,8"/>
                                            <Path Stretch="Fill" Fill="#E5FEFEFE" Data="F1 M 1.71832,9.72023L 4.57119,5.70231L 2.01838,1.91881L 4.56181,1.91881L 5.7925,4.06373L 7.12634,1.91881L 9.66977,1.91881L 7.04195,5.61323L 9.96982,9.72023L 7.42639,9.72023L 5.7925,7.30338L 4.26175,9.72023L 1.71832,9.72023 Z " UseLayoutRounding="False" Margin="18.489,11.572,11.511,11.428"/>
                                        </Grid>

                                    </Grid>

                                    <Grid x:Name="ExpandingElement" VerticalAlignment="Bottom" Margin="0,0,0,28" Height="0" >
                                        <Grid x:Name="gWrapper" Margin="0">
                                            <Border x:Name="Expanding_Border" BorderBrush="Black" Background="Black" BorderThickness="1" Width="28" Margin="0,0,0,-1" >
                                                <Slider x:Name="SliderElement" Value="{Binding Volume}" Orientation="Vertical" Minimum="0" Maximum="1" LargeChange="0.1" SmallChange="0.01" Style="{StaticResource SliderElementStyle}" />
                                            </Border>
                                        </Grid>

                                    </Grid>

                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style TargetType="player:BitrateMonitor">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:BitrateMonitor">
                                <Grid HorizontalAlignment="Center" VerticalAlignment="Center" ToolTipService.ToolTip="{TemplateBinding PlaybackBitrate}" Height="15">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="BitrateStates">
                                            <VisualState x:Name="BitratePercentage50">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle2">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle3">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="BitratePercentage75">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle3">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="BitratePercentageHD"/>
                                            <VisualState x:Name="BitratePercentage0">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle2">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle3">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="BitratePercentage25">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle3">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle2">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="rectangle1">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="BitratePercentage100"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="rectangle" Fill="{StaticResource iconGradient}" Height="4" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="4" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                    <Rectangle x:Name="rectangle1" Fill="{StaticResource iconGradient}" Height="7" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="4" Margin="4,0,0,0" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                    <Rectangle x:Name="rectangle2" Fill="{StaticResource iconGradient}" Height="11" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="4" Margin="8,0,0,0" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                    <Rectangle x:Name="rectangle3" Fill="{StaticResource iconGradient}" Height="15" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="4" Margin="12,0,0,0" Stroke="#FF2A2A2A" StrokeThickness="0.5"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>

                <Style x:Key="ChaptersListBoxItemStyle" TargetType="ListBoxItem">
                    <Setter Property="HorizontalContentAlignment" Value="Left"/>
                    <Setter Property="VerticalContentAlignment" Value="Top"/>
                    <Setter Property="Background" Value="Transparent"/>
                    <Setter Property="BorderThickness" Value="1"/>
                    <Setter Property="TabNavigation" Value="Local"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ListBoxItem">
                                <Grid Background="{TemplateBinding Background}" Margin="0">
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="CommonStates">
                                            <VisualState x:Name="Normal"/>
                                            <VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To=".35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor"/>
                                                    <ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="fillColor" d:IsOptimized="True"/>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="fillColor">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Thickness>5,0</Thickness>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="SelectionStates">
                                            <VisualState x:Name="Unselected"/>
                                            <VisualState x:Name="Selected">
                                                <Storyboard>
                                                    <DoubleAnimation Duration="0" To=".75" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor2"/>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unfocused"/>
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="fillColor" Fill="Red" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1" Margin="5,0"/>
                                    <Rectangle x:Name="fillColor2" Fill="#FFBADDE9" IsHitTestVisible="False" Opacity="0" RadiusY="1" RadiusX="1" Margin="5,0"/>
                                    <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
                                    <Rectangle x:Name="FocusVisualElement" RadiusY="1" RadiusX="1" Stroke="{x:Null}" StrokeThickness="1" Visibility="Collapsed"/>
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="Padding" Value="0"/>
                </Style>

                <Style x:Key="SMFPlayerStyle1" TargetType="player:SMFPlayer">
                    <Setter Property="Background" Value="Black"/>
                    <Setter Property="HorizontalAlignment" Value="Stretch"/>
                    <Setter Property="VerticalAlignment" Value="Stretch"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="player:SMFPlayer">
                                <Grid x:Name="PlayerRoot" Height="{TemplateBinding Height}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Width="{TemplateBinding Width}" d:DesignWidth="756" d:DesignHeight="387" Background="{TemplateBinding Background}">
                                    <Grid.Resources>
                                        <converters:TimeSpanValueConverter x:Key="TimeSpanValueConverter"/>
                                        <converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
                                    </Grid.Resources>
                                    <VisualStateManager.VisualStateGroups>
                                        <VisualStateGroup x:Name="PlaylistStates">
                                            <VisualStateGroup.Transitions>
                                                <VisualTransition From="PlaylistVisible" GeneratedDuration="0" To="PlaylistHidden">
                                                    <Storyboard>
                                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="playlist">
                                                            <EasingDoubleKeyFrame KeyTime="0" Value="150">
                                                                <EasingDoubleKeyFrame.EasingFunction>
                                                                    <QuarticEase EasingMode="EaseIn"/>
                                                                </EasingDoubleKeyFrame.EasingFunction>
                                                            </EasingDoubleKeyFrame>
                                                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0">
                                                                <EasingDoubleKeyFrame.EasingFunction>
                                                                    <QuarticEase EasingMode="EaseIn"/>
                                                                </EasingDoubleKeyFrame.EasingFunction>
                                                            </EasingDoubleKeyFrame>
                                                        </DoubleAnimationUsingKeyFrames>
                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="playlist">
                                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                                <DiscreteObjectKeyFrame.Value>
                                                                    <Visibility>Visible</Visibility>
                                                                </DiscreteObjectKeyFrame.Value>
                                                            </DiscreteObjectKeyFrame>
                                                        </ObjectAnimationUsingKeyFrames>
                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShowPlaylistElement">
                                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                                <DiscreteObjectKeyFrame.Value>
                                                                    <Visibility>Collapsed</Visibility>
                                                                </DiscreteObjectKeyFrame.Value>
                                                            </DiscreteObjectKeyFrame>
                                                        </ObjectAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </VisualTransition>
                                                <VisualTransition From="PlaylistHidden" GeneratedDuration="0" To="PlaylistVisible">
                                                    <Storyboard>
                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="playlist">
                                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                                <DiscreteObjectKeyFrame.Value>
                                                                    <Visibility>Visible</Visibility>
                                                                </DiscreteObjectKeyFrame.Value>
                                                            </DiscreteObjectKeyFrame>
                                                        </ObjectAnimationUsingKeyFrames>
                                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="playlist">
                                                            <EasingDoubleKeyFrame KeyTime="0" Value="0">
                                                                <EasingDoubleKeyFrame.EasingFunction>
                                                                    <QuarticEase EasingMode="EaseOut"/>
                                                                </EasingDoubleKeyFrame.EasingFunction>
                                                            </EasingDoubleKeyFrame>
                                                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="150">
                                                                <EasingDoubleKeyFrame.EasingFunction>
                                                                    <QuarticEase EasingMode="EaseOut"/>
                                                                </EasingDoubleKeyFrame.EasingFunction>
                                                            </EasingDoubleKeyFrame>
                                                        </DoubleAnimationUsingKeyFrames>
                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShowPlaylistElement">
                                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                                <DiscreteObjectKeyFrame.Value>
                                                                    <Visibility>Collapsed</Visibility>
                                                                </DiscreteObjectKeyFrame.Value>
                                                            </DiscreteObjectKeyFrame>
                                                        </ObjectAnimationUsingKeyFrames>
                                                        <DoubleAnimation Duration="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ShowPlaylistElement"/>
                                                    </Storyboard>
                                                </VisualTransition>
                                            </VisualStateGroup.Transitions>
                                            <VisualState x:Name="PlaylistDisabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShowPlaylistElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="PlaylistHidden">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ShowPlaylistElement">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="PlaylistVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="playlist">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="playlist">
                                                        <EasingDoubleKeyFrame KeyTime="0" Value="150"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShowPlaylistElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="MediaLiveStates">
                                            <VisualState x:Name="MediaLive"/>
                                            <VisualState x:Name="MediaNotLive">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SeekToLiveElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>

                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="MediaAdaptiveStates">
                                            <VisualState x:Name="MediaAdaptive">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BitrateMonitorElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="MediaNotAdaptive">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BitrateMonitorElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="PlayStates">
                                            <VisualState x:Name="AcquiringLicense"/>
                                            <VisualState x:Name="Buffering">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BufferingElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="ClipPlaying">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="CaptionsPresenterElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="ReplayElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="RewindElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="PlayElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="FastForwardElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="SlowMotionElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="TimelineElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="AudioStreamSelectionElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="TimelineElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Closed"/>
                                            <VisualState x:Name="Individualizing"/>
                                            <VisualState x:Name="Opening"/>
                                            <VisualState x:Name="Paused"/>
                                            <VisualState x:Name="Playing"/>
                                            <VisualState x:Name="Stopped"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="SlowMotionEnabledStates">
                                            <VisualState x:Name="SlowMotionDisabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SlowMotionElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="SlowMotionEnabled"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="CaptionsStates">
                                            <VisualState x:Name="CaptionsDisabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="CaptionToggleElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="CaptionsHidden">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="CaptionsPresenterElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="CaptionsVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="CaptionsPresenterElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ToggleButton.IsChecked)" Storyboard.TargetName="CaptionToggleElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>True</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="PosterStates">
                                            <VisualState x:Name="PosterHidden">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Poster">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="PosterVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Poster">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="ChapterStates">
                                            <VisualState x:Name="ChaptersDisabled"/>
                                            <VisualState x:Name="ChaptersHidden"/>
                                            <VisualState x:Name="ChaptersVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ChaptersGrid">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="VersionInformationStates">
                                            <VisualState x:Name="VersionInformationDisabled"/>
                                            <VisualState x:Name="VersionInformationHidden">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="VersionInformationElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="VersionInformationVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="VersionInformationElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="AudioStreamMetadataAvailableStates">
                                            <VisualState x:Name="AudioStreamMetadataAvailable">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="AudioStreamSelectionElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="AudioStreamMetadataNotAvailable">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="AudioStreamSelectionElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="LoggingConsoleStates">
                                            <VisualState x:Name="LoggingConsoleDisabled" />
                                            <VisualState x:Name="LoggingConsoleHidden">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="LoggingDisplay">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="LoggingConsoleVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="LoggingDisplay">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="FullScreenStates">
                                            <VisualState x:Name="FullScreen">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ToggleButton.IsChecked)" Storyboard.TargetName="FullScreenToggleElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>True</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="NotFullScreen">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ToggleButton.IsChecked)" Storyboard.TargetName="FullScreenToggleElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="PlayerGraphStates">
                                            <VisualState x:Name="PlayerGraphVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ChartContainer">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Visible</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(ToggleButton.IsChecked)" Storyboard.TargetName="GraphToggleElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>True</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="PlayerGraphDisabled">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GraphToggleElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <Visibility>Collapsed</Visibility>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="PlayerGraphHidden"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="PositionLiveStates">
                                            <VisualState x:Name="PositionLive">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="SeekToLiveElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="PositionNotLive"/>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="AdStates">
                                            <VisualState x:Name="AdHidden" />
                                            <VisualState x:Name="AdVisible">
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="ReplayElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="RewindElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="PlayElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="FastForwardElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="SlowMotionElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="TimelineElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="AudioStreamSelectionElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="TimelineElement">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>False</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </VisualState>
                                        </VisualStateGroup>
                                        <VisualStateGroup x:Name="RetryingStates">
                                            <VisualState x:Name="Retrying" />
                                            <VisualState x:Name="NotRetrying" />
                                            <VisualState x:Name="RetryFailed" />
                                        </VisualStateGroup>
                                    </VisualStateManager.VisualStateGroups>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="0*"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>

                                    <ContentControl IsHitTestVisible="True" Height="{TemplateBinding VideoHeight}" Width="{TemplateBinding VideoWidth}" x:Name="MediaPresenterElement" Grid.Row="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
                                    <ac:CaptionsPresenter x:Name="CaptionsPresenterElement" ItemsSource="{TemplateBinding VisibleCaptions}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
                                        <ac:CaptionsPresenter.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <Grid/>
                                            </ItemsPanelTemplate>
                                        </ac:CaptionsPresenter.ItemsPanel>
                                        <ac:CaptionsPresenter.ItemTemplate>
                                            <DataTemplate>
                                                <ac:CaptionBlockRegion CaptionRegion="{Binding}"/>
                                            </DataTemplate>
                                        </ac:CaptionsPresenter.ItemTemplate>
                                    </ac:CaptionsPresenter>
                                    <Image x:Name="Poster" 
                			Height="{TemplateBinding VideoHeight}" 
                			Width="{TemplateBinding VideoWidth}"
                            offline:OfflineProperties.OfflineImageSource="{Binding ThumbSource}"
                			DataContext="{TemplateBinding CurrentPlaylistItem}" 
                			IsHitTestVisible="False" Visibility="Collapsed"/>
                                    <TextBlock x:Name="BufferingElement" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="0" Foreground="White" Text="Buffering..." IsHitTestVisible="False" Visibility="Collapsed"/>

                                    <Grid x:Name="VideoAreaElement">
                                        <ContentControl x:Name="LowerVideoArea" Canvas.ZIndex="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Bottom" HorizontalContentAlignment="Center" />
                                        <ContentControl x:Name="UpperVideoArea" Canvas.ZIndex="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Top" HorizontalContentAlignment="Center" />
                                        <ContentControl x:Name="LeftVideoArea" Canvas.ZIndex="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" />
                                        <ContentControl x:Name="RightVideoArea" Canvas.ZIndex="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" />
                                    </Grid>

                                    <ContentControl x:Name="VersionInformationElement" ContentTemplate="{StaticResource VersionInformationTemplate}"  Visibility="Collapsed" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Opacity="0.75" d:IsLocked="True"/>
                                    <Grid x:Name="ChartContainer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,10,0" Visibility="Collapsed">
                                        <player:BitrateGraphControl x:Name="BitrateGraphElement" HorizontalAlignment="Left" VerticalAlignment="Bottom" AvailableBitrates="{TemplateBinding AvailableVideoBitrates}" CurrentBitrate="{TemplateBinding PlaybackBitrate}" MaximumPlayableBitrate="{TemplateBinding MaximumPlaybackBitrate}" Margin="10,10,0,10" BorderThickness="0,0,0,10"/>
                                        <player:FramerateGraphControl x:Name="FramerateGraphElement" HorizontalAlignment="Left" VerticalAlignment="Top" CurrentFramerate="{TemplateBinding RenderedFramesPerSecond}" Width="200" Height="100" Margin="10,10,0,0"/>
                                        <player:MaxBitrateLimiterControl x:Name="MaxBitrateLimiterElement"  HorizontalAlignment="Right" VerticalAlignment="Top" AvailableBitrates="{TemplateBinding AvailableVideoBitrates}" DownloadBitrate="{TemplateBinding DownloadBitrate}"  Width="415" Height="150" Margin="0,10,0,0"/>
                                    </Grid>
                                    <Grid x:Name="LoggingDisplay" Opacity="0.75" Background="White" Visibility="Collapsed">
                                        <TextBox x:Name="LoggingDisplayElement" IsReadOnly="True"  TextWrapping="Wrap" Background="Transparent"/>
                                    </Grid>
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="*"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>
                                        <Button x:Name="ShowPlaylistElement" Content="Playlist" HorizontalAlignment="Right" Width="50" d:LayoutOverrides="Height" VerticalAlignment="Bottom" Style="{StaticResource PlaylistButton}" Margin="0" Opacity="0.5" Cursor="Hand"/>
                                        <Grid x:Name="playlist" Height="0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition Width="Auto"/>
                                            </Grid.ColumnDefinitions>
                                            <Grid x:Name="PlaylistGrid" Background="White" Height="150" VerticalAlignment="Top">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>
                                                <player:PlaylistListBox x:Name="PlaylistSelectionElement" ItemsSource="{TemplateBinding Playlist}" BorderThickness="0,1,0,0" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollIncrement="50" Cursor="Hand" ItemContainerStyle="{StaticResource ChaptersListBoxItemStyle}" AllowChapterSelection="False">
                                                    <player:PlaylistListBox.Style>
                                                        <Style TargetType="player:PlaylistListBox">
                                                            <Setter Property="Padding" Value="1"/>
                                                            <Setter Property="Background" Value="#FFFFFFFF"/>
                                                            <Setter Property="Foreground" Value="#FF000000"/>
                                                            <Setter Property="HorizontalContentAlignment" Value="Left"/>
                                                            <Setter Property="VerticalContentAlignment" Value="Top"/>
                                                            <Setter Property="IsTabStop" Value="False"/>
                                                            <Setter Property="BorderThickness" Value="1"/>
                                                            <Setter Property="TabNavigation" Value="Once"/>
                                                            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
                                                            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
                                                            <Setter Property="BorderBrush">
                                                                <Setter.Value>
                                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                                                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                                                        <GradientStop Color="#FF718597" Offset="0.375"/>
                                                                        <GradientStop Color="#FF617584" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Setter.Value>
                                                            </Setter>
                                                            <Setter Property="Template">
                                                                <Setter.Value>
                                                                    <ControlTemplate TargetType="player:PlaylistListBox">
                                                                        <Grid Background="{StaticResource blueGradient}">
                                                                            <Grid.ColumnDefinitions>
                                                                                <ColumnDefinition Width="Auto"/>
                                                                                <ColumnDefinition/>
                                                                                <ColumnDefinition Width="Auto"/>
                                                                            </Grid.ColumnDefinitions>
                                                                            <VisualStateManager.VisualStateGroups>
                                                                                <VisualStateGroup x:Name="ValidationStates">
                                                                                    <VisualState x:Name="Valid"/>
                                                                                    <VisualState x:Name="InvalidUnfocused">
                                                                                        <Storyboard>
                                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                                        <Visibility>Visible</Visibility>
                                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                                </DiscreteObjectKeyFrame>
                                                                                            </ObjectAnimationUsingKeyFrames>
                                                                                        </Storyboard>
                                                                                    </VisualState>
                                                                                    <VisualState x:Name="InvalidFocused">
                                                                                        <Storyboard>
                                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                                        <Visibility>Visible</Visibility>
                                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                                </DiscreteObjectKeyFrame>
                                                                                            </ObjectAnimationUsingKeyFrames>
                                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
                                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                                        <System:Boolean>True</System:Boolean>
                                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                                </DiscreteObjectKeyFrame>
                                                                                            </ObjectAnimationUsingKeyFrames>
                                                                                        </Storyboard>
                                                                                    </VisualState>
                                                                                </VisualStateGroup>
                                                                                <VisualStateGroup x:Name="CanScrollRightStates">
                                                                                    <VisualState x:Name="CanScrollRight"/>
                                                                                    <VisualState x:Name="CannotScrollRight">
                                                                                        <Storyboard>
                                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="ForwardButtonElement">
                                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                                        <System:Boolean>False</System:Boolean>
                                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                                </DiscreteObjectKeyFrame>
                                                                                            </ObjectAnimationUsingKeyFrames>
                                                                                        </Storyboard>
                                                                                    </VisualState>
                                                                                </VisualStateGroup>
                                                                                <VisualStateGroup x:Name="CanScrollLeftStates">
                                                                                    <VisualState x:Name="CannotScrollLeft">
                                                                                        <Storyboard>
                                                                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="BackButtonElement">
                                                                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                                                                    <DiscreteObjectKeyFrame.Value>
                                                                                                        <System:Boolean>False</System:Boolean>
                                                                                                    </DiscreteObjectKeyFrame.Value>
                                                                                                </DiscreteObjectKeyFrame>
                                                                                            </ObjectAnimationUsingKeyFrames>
                                                                                        </Storyboard>
                                                                                    </VisualState>
                                                                                    <VisualState x:Name="CanScrollLeft"/>
                                                                                </VisualStateGroup>
                                                                            </VisualStateManager.VisualStateGroups>
                                                                            <RepeatButton x:Name="BackButtonElement" VerticalAlignment="Center" MinWidth="75" Style="{StaticResource PlaylistBackButton}" HorizontalAlignment="Left" Width="35"/>
                                                                            <Border Background="{StaticResource blueGradient}" Grid.Column="1">
                                                                                <ScrollViewer x:Name="ScrollViewer" BorderBrush="{x:Null}" BorderThickness="0" Background="{StaticResource blueGradient}" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}">
                                                                                    <ItemsPresenter/>
                                                                                </ScrollViewer>
                                                                            </Border>
                                                                            <RepeatButton x:Name="ForwardButtonElement" VerticalAlignment="Center" Content="Forward" Grid.Column="2" MinWidth="75" HorizontalAlignment="Right" Style="{StaticResource PlaylistFowardButton}" Width="35"/>
                                                                            <Border x:Name="ValidationErrorElement" BorderBrush="#FFDB000C" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Visibility="Collapsed">
                                                                                <ToolTipService.ToolTip>
                                                                                    <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipTemplate}">
                                                                                        <ToolTip.Triggers>
                                                                                            <EventTrigger RoutedEvent="Canvas.Loaded">
                                                                                                <BeginStoryboard>
                                                                                                    <Storyboard>
                                                                                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="validationTooltip">
                                                                                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                                                                                <DiscreteObjectKeyFrame.Value>
                                                                                                                    <System:Boolean>true</System:Boolean>
                                                                                                                </DiscreteObjectKeyFrame.Value>
                                                                                                            </DiscreteObjectKeyFrame>
                                                                                                        </ObjectAnimationUsingKeyFrames>
                                                                                                    </Storyboard>
                                                                                                </BeginStoryboard>
                                                                                            </EventTrigger>
                                                                                        </ToolTip.Triggers>
                                                                                    </ToolTip>
                                                                                </ToolTipService.ToolTip>
                                                                                <Grid Background="Transparent" HorizontalAlignment="Right" Height="10" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10">
                                                                                    <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z" Fill="#FFDC000C" Margin="-1,3,0,0"/>
                                                                                    <Path Data="M 0,0 L2,0 L 8,6 L8,8" Fill="#ffffff" Margin="-1,3,0,0"/>
                                                                                </Grid>
                                                                            </Border>
                                                                        </Grid>
                                                                    </ControlTemplate>
                                                                </Setter.Value>
                                                            </Setter>
                                                            <Setter Property="ItemsPanel">
                                                                <Setter.Value>
                                                                    <ItemsPanelTemplate>
                                                                        <StackPanel Orientation="Horizontal"/>
                                                                    </ItemsPanelTemplate>
                                                                </Setter.Value>
                                                            </Setter>
                                                        </Style>
                                                    </player:PlaylistListBox.Style>
                                                    <player:PlaylistListBox.ItemTemplate>
                                                        <DataTemplate>
                                                            <player:PlaylistListBoxItem/>
                                                        </DataTemplate>
                                                    </player:PlaylistListBox.ItemTemplate>
                                                </player:PlaylistListBox>
                                                <Rectangle Height="30" VerticalAlignment="Top" Opacity="0.35" StrokeThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Auto" IsHitTestVisible="False">
                                                    <Rectangle.Fill>
                                                        <LinearGradientBrush EndPoint="0.5,0.733" StartPoint="0.5,0">
                                                            <GradientStop Color="#7FFFFFFF" Offset="0.996"/>
                                                            <GradientStop Color="White" Offset="0.082"/>
                                                        </LinearGradientBrush>
                                                    </Rectangle.Fill>
                                                </Rectangle>
                                            </Grid>
                                            <Grid x:Name="ChaptersGrid" Height="150" Background="{StaticResource blueGradient}" VerticalAlignment="Top" Visibility="Collapsed" >
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition/>
                                                </Grid.ColumnDefinitions>
                                                <Grid DataContext="{TemplateBinding CurrentPlaylistItem}" Margin="0" Grid.RowSpan="1" Width="250">
                                                    <Grid.RowDefinitions>
                                                        <RowDefinition Height="Auto"/>
                                                        <RowDefinition Height="Auto"/>
                                                        <RowDefinition Height="Auto"/>
                                                    </Grid.RowDefinitions>
                                                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Now Playing" Foreground="#FF2E3B4B" VerticalAlignment="Center" FontSize="13.333" FontWeight="Bold" Margin="10,0,0,0" FontFamily="Trebuchet MS"/>
                                                    <Image Grid.RowSpan="1" offline:OfflineProperties.OfflineImageSource="{Binding ThumbSource}" Height="75" Grid.Row="1" VerticalAlignment="Bottom" Margin="0,10,0,0" HorizontalAlignment="Center" Cursor="Hand"/>
                                                    <TextBlock TextWrapping="Wrap" Text="{Binding Title}" d:LayoutOverrides="Height" HorizontalAlignment="Center" Foreground="#FF325C7D" FontSize="12" Grid.Row="2" Margin="0,5,0,0" TextAlignment="Center" Cursor="Hand" FontFamily="Trebuchet MS"/>
                                                    <Rectangle Grid.RowSpan="1" Height="30" VerticalAlignment="Top" d:LayoutOverrides="Height" Opacity="0.35">
                                                        <Rectangle.Fill>
                                                            <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
                                                                <GradientStop Color="#7EFFFFFF" Offset="0.996"/>
                                                                <GradientStop Color="#FF445A6E" Offset="0.267"/>
                                                            </LinearGradientBrush>
                                                        </Rectangle.Fill>
                                                    </Rectangle>
                                                </Grid>
                                                <Grid Margin="0" Grid.Column="1">
                                                    <Grid.RowDefinitions>
                                                        <RowDefinition Height="Auto"/>
                                                        <RowDefinition/>
                                                    </Grid.RowDefinitions>
                                                    <Rectangle Opacity="0.35" StrokeThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Auto" IsHitTestVisible="False" Margin="0,0,-250,0" Height="30">
                                                        <Rectangle.Fill>
                                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                                <GradientStop Color="#FF6A838D" Offset="0.267"/>
                                                                <GradientStop Color="#FFC5D1DA" Offset="0.81"/>
                                                            </LinearGradientBrush>
                                                        </Rectangle.Fill>
                                                    </Rectangle>
                                                    <player:ScrollableListBox ItemsSource="{TemplateBinding Chapters}"  x:Name="ChapterSelectionElement" Margin="0" Background="{x:Null}" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" VerticalContentAlignment="Stretch" ScrollIncrement="50" Grid.Row="1" Cursor="Hand" ItemContainerStyle="{StaticResource ChaptersListBoxItemStyle}" Padding="0">
                                                        <player:ScrollableListBox.ItemTemplate>
                                                            <DataTemplate>
                                                                <player:PositionAwareListBoxItem Template="{StaticResource ChapterSelectionElementItemTemplate}"/>
                                                            </DataTemplate>
                                                        </player:ScrollableListBox.ItemTemplate>
                                                    </player:ScrollableListBox>
                                                    <TextBlock HorizontalAlignment="Left" Margin="10,0,0,0" TextWrapping="Wrap" Text="Chapters" VerticalAlignment="Center" Foreground="#FF4E5966" FontSize="13.333" FontWeight="Bold" Cursor="Hand" FontFamily="Trebuchet MS"/>
                                                    <HyperlinkButton x:Name="HideChaptersElement" Content="Back to Playlist" Margin="0,0,10,0" d:LayoutOverrides="Height" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="#FF075992" FontSize="12" Cursor="Hand" FontFamily="Trebuchet MS"/>
                                                </Grid>
                                            </Grid>
                                            <Grid x:Name="grid" HorizontalAlignment="Right" Width="50" Background="{StaticResource blueGradient}" Grid.Column="1" Height="150" VerticalAlignment="Top">
                                                <Grid.Effect>
                                                    <DropShadowEffect Direction="135" Opacity="0.35" Color="#BF000000"/>
                                                </Grid.Effect>
                                                <Rectangle Margin="0" Height="30" Opacity="0.35" VerticalAlignment="Top" StrokeThickness="0">
                                                    <Rectangle.Fill>
                                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                            <GradientStop Color="#FF637381" Offset="0"/>
                                                            <GradientStop Color="White" Offset="1"/>
                                                        </LinearGradientBrush>
                                                    </Rectangle.Fill>
                                                </Rectangle>
                                                <TextBlock TextWrapping="Wrap" Text="Playlist" VerticalAlignment="Top" d:LayoutOverrides="Width" Foreground="White" HorizontalAlignment="Center" Margin="0,8,0,0" FontFamily="Trebuchet MS" FontSize="12"/>
                                                <Button x:Name="HidePlaylistElement" Content="X" VerticalAlignment="Bottom" Style="{StaticResource ClosePlaylistButton}" Cursor="Hand"/>
                                            </Grid>
                                        </Grid>
                                    </Grid>
                                    <Grid x:Name="ControllerContainer" Visibility="{Binding IsControlStripVisible, Converter={StaticResource BoolToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}" Grid.Row="4" Height="40">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.Background>
                                            <LinearGradientBrush StartPoint="0.481481,0.00636957" EndPoint="0.481481,1">
                                                <GradientStop Color="#FF78808B" Offset="0"/>
                                                <GradientStop Color="#FF58606A" Offset="0.287958"/>
                                                <GradientStop Color="#FF38424E" Offset="0.680628"/>
                                                <GradientStop Color="#FF333D49" Offset="0.984293"/>
                                            </LinearGradientBrush>
                                        </Grid.Background>
                                        <Grid x:Name="playercontrols" Grid.ColumnSpan="1" Margin="19,0,16,0">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                            </Grid.ColumnDefinitions>
                                            <!-- Modified generic temploate to turn off Rewinf, FF, and Slow Motion buttons by setting Visibility="Collapsed" -->
                                            <Button x:Name="ReplayElement" Style="{StaticResource ReplayButtonStyle}" BorderThickness="0" Width="36" Height="28" HorizontalAlignment="Right" Margin="0"/>
                                            <Button x:Name="RewindElement" Visibility="Collapsed" Height="28" Width="36" Style="{StaticResource RWButtonStyle}" BorderThickness="0,1,0,0" Margin="0" Grid.Column="1" HorizontalAlignment="Right"/>
                                            <player:PlayElement PlayState="{TemplateBinding PlayState}" x:Name="PlayElement" Grid.Column="2" Margin="0" Width="60" Cursor="Hand" />
                                            <Button x:Name="FastForwardElement" Visibility="Collapsed" Style="{StaticResource FFButtonStyle}" Height="28" Width="36" BorderThickness="0" Margin="0" Grid.Column="3" HorizontalAlignment="Right"/>

                                            <ToggleButton x:Name="SlowMotionElement" Visibility="Collapsed" Height="28" Width="36" Margin="0" Style="{StaticResource SlowMotionButtonStyle}" ToolTipService.ToolTip="Slow Motion" Grid.Column="4" HorizontalAlignment="Right"/>

                                        </Grid>
                                        <Grid x:Name="divider1" HorizontalAlignment="Left" Width="2" Grid.Column="1">
                                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                                <Path.Stroke>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="Black" Offset="0.509"/>
                                                        <GradientStop Color="#FF343E4A" Offset="1"/>
                                                        <GradientStop Color="#FF757D87" Offset="0"/>
                                                    </LinearGradientBrush>
                                                </Path.Stroke>
                                            </Path>
                                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Margin="1,0,0,0" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                                <Path.Stroke>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFFDFEFF" Offset="0.509"/>
                                                        <GradientStop Color="#FF36404C" Offset="1"/>
                                                        <GradientStop Color="#FF757D87" Offset="0"/>
                                                    </LinearGradientBrush>
                                                </Path.Stroke>
                                            </Path>
                                        </Grid>
                                        <Grid x:Name="timelinecontrols" Grid.ColumnSpan="1" Margin="16,0" Grid.Column="2">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                            </Grid.ColumnDefinitions>
                                            <player:Timeline x:Name="TimelineElement" 
                					TimelineMarkers="{TemplateBinding TimelineMarkers}"
                					Chapters="{TemplateBinding Chapters}"
                					StartPosition="{TemplateBinding StartPosition}"
                					EndPosition="{TemplateBinding EndPosition}"
                					IsLive="{TemplateBinding IsMediaLive}"
                					LivePosition="{TemplateBinding LivePosition}"
                					Margin="0" VerticalAlignment="Center" Foreground="{x:Null}" HorizontalContentAlignment="Stretch" Cursor="Hand" />
                                            <Border x:Name="TimeContainer" BorderThickness="1" Margin="0" HorizontalAlignment="Left" Grid.Column="1">
                                                <Grid Height="28" MaxHeight="28" MinHeight="28" MinWidth="60" UseLayoutRounding="True">
                                                    <Grid>
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="0.25*"/>
                                                            <ColumnDefinition Width="0.367*"/>
                                                            <ColumnDefinition Width="0.383*"/>
                                                        </Grid.ColumnDefinitions>
                                                        <TextBlock x:Name="CurrentPositionElement" Text="{Binding PlaybackPosition, Converter={StaticResource TimeSpanValueConverter}, RelativeSource={RelativeSource TemplatedParent}}" FontSize="9" Foreground="#FFC1C1C1" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Left" Padding="8,0,0,0"/>
                                                        <TextBlock x:Name="TimeSeparatorElement" FontSize="9" Foreground="#FFFDFAFA" Text="|" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="3,0" Opacity="0.4"/>
                                                        <TextBlock x:Name="CurrentDurationElement" Text="{Binding EndPosition, Converter={StaticResource TimeSpanValueConverter}, RelativeSource={RelativeSource TemplatedParent}}" FontSize="9" Foreground="#FFFDFDFD" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="2" Padding="0,0,8,0" Opacity="0.4"/>
                                                    </Grid>
                                                </Grid>
                                            </Border>
                                            <Button x:Name="SeekToLiveElement" Height="28" Width="60" BorderThickness="0" Style="{StaticResource SeekToLiveButtonStyle}" Margin="0" Content="Go Live" Grid.Column="2" HorizontalAlignment="Right" Cursor="Hand"/>
                                        </Grid>
                                        <Grid x:Name="divider2" HorizontalAlignment="Left" Width="2" Grid.Column="3">
                                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                                <Path.Stroke>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="Black" Offset="0.509"/>
                                                        <GradientStop Color="#FF343E4A" Offset="1"/>
                                                        <GradientStop Color="#FF757D87" Offset="0"/>
                                                    </LinearGradientBrush>
                                                </Path.Stroke>
                                            </Path>
                                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Margin="1,0,0,0" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                                <Path.Stroke>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFFDFEFF" Offset="0.509"/>
                                                        <GradientStop Color="#FF343E4A" Offset="1"/>
                                                        <GradientStop Color="#FF757D87" Offset="0.009"/>
                                                    </LinearGradientBrush>
                                                </Path.Stroke>
                                            </Path>
                                        </Grid>
                                        <Grid x:Name="functioncontrols" Grid.ColumnSpan="1" Margin="16,0" Grid.Column="4">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                                <ColumnDefinition Width="Auto"/>
                                            </Grid.ColumnDefinitions>
                                            <ToggleButton Grid.Column="0" x:Name="CaptionToggleElement" Content="CC" Margin="0" d:LayoutOverrides="GridBox" Style="{StaticResource CaptionDisplayToggleButtonStyle}" Width="36" ToolTipService.ToolTip="Closed Captions" HorizontalAlignment="Right" Height="28" Cursor="Hand"/>
                                            <ToggleButton Grid.Column="1" x:Name="GraphToggleElement" Height="28" Width="36" Content="G" ToolTipService.ToolTip="Toggle Graph" Cursor="Hand" Style="{StaticResource PlayerGraphButtonStyle}" />
                                            <ComboBox SelectedItem="{TemplateBinding SelectedAudioStream}" ItemsSource="{TemplateBinding AvailableAudioStreams}" x:Name="AudioStreamSelectionElement" Background="Black" Grid.ColumnSpan="1" Foreground="Black" Margin="0" Width="110" HorizontalAlignment="Right" Grid.Column="3" Height="28" Style="{StaticResource AudioStreamMenu}" BorderBrush="{StaticResource btnBaseGradient}" Cursor="Hand">
                                                <ComboBox.ItemTemplate>
                                                    <DataTemplate>
                                                        <TextBlock Text="{Binding Name}" Foreground="{StaticResource iconGradient}"/>
                                                    </DataTemplate>
                                                </ComboBox.ItemTemplate>
                                            </ComboBox>
                                            <Grid x:Name="VolumeExtendWraper" Height="150" VerticalAlignment="Bottom" Width="36" HorizontalAlignment="Right" Grid.Column="4" Margin="0,-160,0,6" Canvas.ZIndex="2">
                                                <player:VolumeControl x:Name="VolumeElement" HorizontalAlignment="Center" VolumeLevel=".5" Width="36"/>
                                            </Grid>
                                            <ToggleButton x:Name="FullScreenToggleElement" Style="{StaticResource FullScreenElementStyle}" BorderThickness="0" HorizontalContentAlignment="Stretch" Padding="0" VerticalContentAlignment="Stretch" HorizontalAlignment="Right" Margin="0" Width="36" Grid.Column="5" Height="28" Cursor="Hand"/>
                                        </Grid>
                                        <Grid x:Name="divider3" HorizontalAlignment="Left" Margin="0" Width="2" Height="40" Grid.Column="5">
                                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                                <Path.Stroke>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="Black" Offset="0.509"/>
                                                        <GradientStop Color="#FF343E4A" Offset="1"/>
                                                        <GradientStop Color="#FF757D87" Offset="0"/>
                                                    </LinearGradientBrush>
                                                </Path.Stroke>
                                            </Path>
                                            <Path Data="M245.16667,0 L245.16667,39.109009" HorizontalAlignment="Left" Margin="1,0,0,0" Stretch="Fill" UseLayoutRounding="False" Width="1">
                                                <Path.Stroke>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFFDFEFF" Offset="0.509"/>
                                                        <GradientStop Color="#FF343E4A" Offset="1"/>
                                                        <GradientStop Color="#FF757D87" Offset="0"/>
                                                    </LinearGradientBrush>
                                                </Path.Stroke>
                                            </Path>
                                        </Grid>
                                        <player:BitrateMonitor HighDefinitionBitrate="{TemplateBinding HighDefinitionBitrate}" x:Name="BitrateMonitorElement" Height="40" Width="36" Grid.Column="6" PlaybackBitrate="{TemplateBinding PlaybackBitrate}" MaximumPlaybackBitrate="{TemplateBinding MaximumPlaybackBitrate}" Margin="5,0,7,0"/>
                                    </Grid>

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

    </Application.Resources>
</Application>
