<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:core="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
                    xmlns:local="clr-namespace:VIZ.Framework.Common">

    <core:TimeSpan2DoubleConverter x:Key="TimeSpan2DoubleConverter" Type="Second"></core:TimeSpan2DoubleConverter>

    <Style TargetType="local:VideoTimeBar">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:VideoTimeBar">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="180"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Slider x:Name="PART_Slider" VerticalAlignment="Center"></Slider>
                        <StackPanel x:Name="PART_Copy" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal" 
                                    ToolTip="点击复制" Cursor="Hand" Background="Transparent">
                            <TextBlock Text="{Binding Path=TimeString,RelativeSource={RelativeSource AncestorLevel=1,Mode=FindAncestor,AncestorType=local:VideoTimeBar}}"
                                       FontSize="14"></TextBlock>
                            <TextBlock Text="/" Margin="5,0,5,0"
                                       FontSize="14"></TextBlock>
                            <TextBlock Text="{Binding Path=MaxTime,RelativeSource={RelativeSource AncestorLevel=1,Mode=FindAncestor,AncestorType=local:VideoTimeBar},StringFormat=hh\\:mm\\:ss}"
                                       FontSize="14"></TextBlock>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>