5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 mc:Ignorable="d" |
6 mc:Ignorable="d" |
7 xmlns:vw="clr-namespace:FingersDance.Views;assembly=FingersDance.Views" |
7 xmlns:vw="clr-namespace:FingersDance.Views;assembly=FingersDance.Views" |
8 xmlns:popup="clr-namespace:FingersDance.Control.Close;assembly=FingersDance.Control.Close" |
8 xmlns:popup="clr-namespace:FingersDance.Control.Close;assembly=FingersDance.Control.Close" |
9 xmlns:Custom="http://schemas.microsoft.com/surface/2008" xmlns:Microsoft_Surface_Presentation_Generic="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic" |
9 xmlns:Custom="http://schemas.microsoft.com/surface/2008" xmlns:Microsoft_Surface_Presentation_Generic="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic" |
10 x:Class="FingersDance.Control.TimeLine.UserControlTimeLine" |
10 x:Class="FingersDance.Control.TimeLine.UserControlTimeLine" |
11 x:Name="UserControl" |
11 x:Name="UserControl" |
12 d:DesignWidth="383" Background="{x:Null}" d:DesignHeight="33"> |
12 d:DesignWidth="383" Background="{x:Null}" d:DesignHeight="33"> |
13 |
13 |
14 <UserControl.Resources> |
14 <UserControl.Resources> |
15 <Style x:Key="FingersDance.Control.Slider" TargetType="{x:Type Custom:SurfaceSlider}"> |
15 <Style x:Key="FingersDance.Control.Slider" TargetType="{x:Type Custom:SurfaceSlider}"> |
16 <Setter Property="Background" Value="#191B2022"/> |
16 <Setter Property="Background" Value="#191B2022"/> |
17 <Setter Property="BorderBrush" Value="#3F040404"/> |
17 <Setter Property="BorderBrush" Value="#3F040404"/> |
18 <Setter Property="Foreground" Value="Black"/> |
18 <Setter Property="Foreground" Value="Black"/> |
19 <Setter Property="Width" Value="NaN"/> |
19 <Setter Property="Width" Value="NaN"/> |
20 <Setter Property="MinWidth" Value="30"/> |
20 <Setter Property="MinWidth" Value="30"/> |
21 <Setter Property="Height" Value="NaN"/> |
21 <Setter Property="Height" Value="NaN"/> |
22 <Setter Property="MinHeight" Value="30"/> |
22 <Setter Property="MinHeight" Value="30"/> |
23 <Setter Property="Template"> |
23 <Setter Property="Template"> |
24 <Setter.Value> |
24 <Setter.Value> |
25 <ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}"> |
25 <ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}"> |
26 <ControlTemplate.Resources> |
26 <ControlTemplate.Resources> |
27 <Storyboard x:Key="Touch"> |
27 <Storyboard x:Key="Touch"> |
28 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
28 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
29 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
29 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
30 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
30 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
31 </Storyboard> |
31 </Storyboard> |
32 <Storyboard x:Key="Release"> |
32 <Storyboard x:Key="Release"> |
33 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
33 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
34 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
34 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
35 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
35 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
36 </Storyboard> |
36 </Storyboard> |
37 </ControlTemplate.Resources> |
37 </ControlTemplate.Resources> |
38 <Grid x:Name="GridRoot" VerticalAlignment="Stretch" Height="Auto" SnapsToDevicePixels="True" Background="Transparent"> |
38 <Grid x:Name="GridRoot" VerticalAlignment="Stretch" Height="Auto" SnapsToDevicePixels="True" Background="Transparent"> |
39 <Grid.RowDefinitions> |
39 <Grid.RowDefinitions> |
40 <RowDefinition Height="Auto"/> |
40 <RowDefinition Height="Auto"/> |
41 <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/> |
41 <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/> |
42 <RowDefinition Height="Auto"/> |
42 <RowDefinition Height="Auto"/> |
43 </Grid.RowDefinitions> |
43 </Grid.RowDefinitions> |
44 <Canvas ClipToBounds="False"> |
44 <Canvas ClipToBounds="False"> |
45 <Label x:Name="PART_SurfaceToolTip"> |
45 <Label x:Name="PART_SurfaceToolTip"> |
46 <Label.Style> |
46 <Label.Style> |
47 <Style TargetType="{x:Type Label}"> |
47 <Style TargetType="{x:Type Label}"> |
48 <Setter Property="Template"> |
48 <Setter Property="Template"> |
49 <Setter.Value> |
49 <Setter.Value> |
50 <ControlTemplate TargetType="{x:Type Label}"> |
50 <ControlTemplate TargetType="{x:Type Label}"> |
51 <Grid> |
51 <Grid> |
52 <Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2"> |
52 <Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2"> |
53 <TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/> |
53 <TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/> |
54 </Border> |
54 </Border> |
55 </Grid> |
55 </Grid> |
56 </ControlTemplate> |
56 </ControlTemplate> |
57 </Setter.Value> |
57 </Setter.Value> |
58 </Setter> |
58 </Setter> |
59 <Setter Property="Visibility" Value="Collapsed"/> |
59 <Setter Property="Visibility" Value="Collapsed"/> |
60 <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/> |
60 <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/> |
61 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
61 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
62 <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
62 <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
63 <Setter Property="Padding" Value="2"/> |
63 <Setter Property="Padding" Value="2"/> |
64 </Style> |
64 </Style> |
65 </Label.Style> |
65 </Label.Style> |
66 </Label> |
66 </Label> |
67 </Canvas> |
67 </Canvas> |
68 <TickBar x:Name="TopTick" Margin="0,0,0,1" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="False" Placement="Top" ReservedSpace="30"/> |
68 <TickBar x:Name="TopTick" Margin="0,0,0,1" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="False" Placement="Top" ReservedSpace="30"/> |
69 <TickBar x:Name="BottomTick" Margin="0,1,0,0" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="2" Fill="{TemplateBinding BorderBrush}" Placement="Bottom" ReservedSpace="30"/> |
69 <TickBar x:Name="BottomTick" Margin="0,1,0,0" Height="4" Opacity="1" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Row="2" Fill="{TemplateBinding BorderBrush}" Placement="Bottom" ReservedSpace="30"/> |
70 <Rectangle x:Name="TrackBkgd" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="Auto" Height="3" Opacity="1" SnapsToDevicePixels="True" Grid.Row="1" Fill="#FFF8EDED" Stroke="{x:Null}"/> |
70 <Rectangle x:Name="TrackBkgd" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="Auto" Height="3" Opacity="1" SnapsToDevicePixels="True" Grid.Row="1" Fill="#FFF8EDED" Stroke="{x:Null}"/> |
71 <Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseDebut"/> |
71 <Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseDebut"/> |
72 <Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseFin" RenderTransformOrigin="0.5,0.5"> |
72 <Ellipse Fill="White" Stroke="{x:Null}" HorizontalAlignment="Left" Margin="0,10.116,0,10.128" Width="12.078" Grid.Row="1" x:Name="ellipseFin" RenderTransformOrigin="0.5,0.5"> |
73 <Ellipse.RenderTransform> |
73 <Ellipse.RenderTransform> |
74 <TransformGroup> |
74 <TransformGroup> |
75 <ScaleTransform ScaleX="1" ScaleY="1"/> |
75 <ScaleTransform ScaleX="1" ScaleY="1"/> |
76 <SkewTransform AngleX="0" AngleY="0"/> |
76 <SkewTransform AngleX="0" AngleY="0"/> |
77 <RotateTransform Angle="0"/> |
77 <RotateTransform Angle="0"/> |
78 <TranslateTransform X="{Binding Path=ActualWidth, ElementName=TrackBkgd, Mode=Default}" Y="0"/> |
78 <TranslateTransform X="{Binding Path=ActualWidth, ElementName=TrackBkgd, Mode=Default}" Y="0"/> |
79 </TransformGroup> |
79 </TransformGroup> |
80 </Ellipse.RenderTransform> |
80 </Ellipse.RenderTransform> |
81 </Ellipse> |
81 </Ellipse> |
82 <Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Row="1"> |
82 <Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Row="1"> |
83 <Custom:SurfaceTrack x:Name="PART_Track" Grid.Row="1"> |
83 <Custom:SurfaceTrack x:Name="PART_Track" Grid.Row="1"> |
84 <Custom:SurfaceTrack.Thumb> |
84 <Custom:SurfaceTrack.Thumb> |
85 <Custom:SurfaceThumb x:Name="Thumb" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True" Background="{DynamicResource SliderPlay_xaml}" Margin="-5.072,0,5.048,0" BorderBrush="{x:Null}"> |
85 <Custom:SurfaceThumb x:Name="Thumb" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True" Background="{DynamicResource SliderPlay_xaml}" Margin="-5.072,0,5.048,0" BorderBrush="{x:Null}"> |
86 <Custom:SurfaceThumb.Style> |
86 <Custom:SurfaceThumb.Style> |
87 <Style TargetType="{x:Type Custom:SurfaceThumb}"> |
87 <Style TargetType="{x:Type Custom:SurfaceThumb}"> |
88 <Setter Property="Background" Value="Transparent"/> |
88 <Setter Property="Background" Value="Transparent"/> |
89 <Setter Property="Custom:ContactVisualizer.Adapter"> |
89 <Setter Property="Custom:ContactVisualizer.Adapter"> |
90 <Setter.Value> |
90 <Setter.Value> |
91 <Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/> |
91 <Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/> |
92 </Setter.Value> |
92 </Setter.Value> |
93 </Setter> |
93 </Setter> |
94 <Setter Property="Template"> |
94 <Setter Property="Template"> |
95 <Setter.Value> |
95 <Setter.Value> |
96 <ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}"> |
96 <ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}"> |
97 <ControlTemplate.Resources> |
97 <ControlTemplate.Resources> |
98 <Storyboard x:Key="Press"> |
98 <Storyboard x:Key="Press"> |
99 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
99 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
100 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
100 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
101 </DoubleAnimationUsingKeyFrames> |
101 </DoubleAnimationUsingKeyFrames> |
102 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
102 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
103 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
103 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
104 </ThicknessAnimationUsingKeyFrames> |
104 </ThicknessAnimationUsingKeyFrames> |
105 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
105 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
106 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
106 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
107 </ThicknessAnimationUsingKeyFrames> |
107 </ThicknessAnimationUsingKeyFrames> |
108 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
108 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
109 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
109 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
110 </ThicknessAnimationUsingKeyFrames> |
110 </ThicknessAnimationUsingKeyFrames> |
111 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
111 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
112 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
112 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
113 </ThicknessAnimationUsingKeyFrames> |
113 </ThicknessAnimationUsingKeyFrames> |
114 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
114 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
115 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
115 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
116 </DoubleAnimationUsingKeyFrames> |
116 </DoubleAnimationUsingKeyFrames> |
117 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
117 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
118 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
118 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
119 </DoubleAnimationUsingKeyFrames> |
119 </DoubleAnimationUsingKeyFrames> |
120 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
120 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
121 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
121 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
122 </DoubleAnimationUsingKeyFrames> |
122 </DoubleAnimationUsingKeyFrames> |
123 </Storyboard> |
123 </Storyboard> |
124 <Storyboard x:Key="Release"> |
124 <Storyboard x:Key="Release"> |
125 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
125 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
126 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
126 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
127 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
127 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
128 </DoubleAnimationUsingKeyFrames> |
128 </DoubleAnimationUsingKeyFrames> |
129 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
129 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
130 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
130 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
131 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
131 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
132 </ThicknessAnimationUsingKeyFrames> |
132 </ThicknessAnimationUsingKeyFrames> |
133 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
133 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
134 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
134 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
135 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
135 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
136 </ThicknessAnimationUsingKeyFrames> |
136 </ThicknessAnimationUsingKeyFrames> |
137 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
137 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
138 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
138 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
139 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
139 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
140 </ThicknessAnimationUsingKeyFrames> |
140 </ThicknessAnimationUsingKeyFrames> |
141 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
141 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
142 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
142 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
143 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
143 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
144 </ThicknessAnimationUsingKeyFrames> |
144 </ThicknessAnimationUsingKeyFrames> |
145 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
145 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
146 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
146 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
147 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
147 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
148 </DoubleAnimationUsingKeyFrames> |
148 </DoubleAnimationUsingKeyFrames> |
149 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
149 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
150 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
150 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
151 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
151 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
152 </DoubleAnimationUsingKeyFrames> |
152 </DoubleAnimationUsingKeyFrames> |
153 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
153 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
154 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
154 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
155 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
155 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
156 </DoubleAnimationUsingKeyFrames> |
156 </DoubleAnimationUsingKeyFrames> |
157 </Storyboard> |
157 </Storyboard> |
158 </ControlTemplate.Resources> |
158 </ControlTemplate.Resources> |
159 <Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent"> |
159 <Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent"> |
160 <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/> |
160 <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/> |
161 <Rectangle x:Name="Button" Fill="{x:Null}" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True" Stroke="{x:Null}"/> |
161 <Rectangle x:Name="Button" Fill="{x:Null}" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True" Stroke="{x:Null}"/> |
162 <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Fill="{x:Null}" Stroke="{x:Null}"/> |
162 <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True" Fill="{x:Null}" Stroke="{x:Null}"/> |
163 <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/> |
163 <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/> |
164 <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/> |
164 <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/> |
165 </Grid> |
165 </Grid> |
166 <ControlTemplate.Triggers> |
166 <ControlTemplate.Triggers> |
167 <Trigger Property="IsFocused" Value="True"/> |
167 <Trigger Property="IsFocused" Value="True"/> |
168 <Trigger Property="IsEnabled" Value="False"> |
168 <Trigger Property="IsEnabled" Value="False"> |
169 <Setter Property="Fill" TargetName="Button" Value="#00000000"/> |
169 <Setter Property="Fill" TargetName="Button" Value="#00000000"/> |
170 <Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/> |
170 <Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/> |
171 <Setter Property="Stroke" TargetName="Button" Value="#33000000"/> |
171 <Setter Property="Stroke" TargetName="Button" Value="#33000000"/> |
172 <Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/> |
172 <Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/> |
173 </Trigger> |
173 </Trigger> |
174 <Trigger Property="IsDragging" Value="True"> |
174 <Trigger Property="IsDragging" Value="True"> |
175 <Trigger.EnterActions> |
175 <Trigger.EnterActions> |
176 <BeginStoryboard> |
176 <BeginStoryboard> |
177 <Storyboard> |
177 <Storyboard> |
178 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
178 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
179 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
179 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
180 </DoubleAnimationUsingKeyFrames> |
180 </DoubleAnimationUsingKeyFrames> |
181 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
181 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
182 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
182 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
183 </ThicknessAnimationUsingKeyFrames> |
183 </ThicknessAnimationUsingKeyFrames> |
184 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
184 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
185 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
185 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
186 </ThicknessAnimationUsingKeyFrames> |
186 </ThicknessAnimationUsingKeyFrames> |
187 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
187 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
188 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
188 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
189 </ThicknessAnimationUsingKeyFrames> |
189 </ThicknessAnimationUsingKeyFrames> |
190 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
190 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
191 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
191 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
192 </ThicknessAnimationUsingKeyFrames> |
192 </ThicknessAnimationUsingKeyFrames> |
193 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
193 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
194 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
194 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
195 </DoubleAnimationUsingKeyFrames> |
195 </DoubleAnimationUsingKeyFrames> |
196 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
196 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
197 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
197 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
198 </DoubleAnimationUsingKeyFrames> |
198 </DoubleAnimationUsingKeyFrames> |
199 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
199 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
200 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
200 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
201 </DoubleAnimationUsingKeyFrames> |
201 </DoubleAnimationUsingKeyFrames> |
202 </Storyboard> |
202 </Storyboard> |
203 </BeginStoryboard> |
203 </BeginStoryboard> |
204 </Trigger.EnterActions> |
204 </Trigger.EnterActions> |
205 <Trigger.ExitActions> |
205 <Trigger.ExitActions> |
206 <BeginStoryboard> |
206 <BeginStoryboard> |
207 <Storyboard> |
207 <Storyboard> |
208 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
208 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
209 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
209 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
210 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
210 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
211 </DoubleAnimationUsingKeyFrames> |
211 </DoubleAnimationUsingKeyFrames> |
212 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
212 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
213 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
213 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
214 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
214 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
215 </ThicknessAnimationUsingKeyFrames> |
215 </ThicknessAnimationUsingKeyFrames> |
216 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
216 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
217 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
217 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
218 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
218 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
219 </ThicknessAnimationUsingKeyFrames> |
219 </ThicknessAnimationUsingKeyFrames> |
220 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
220 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
221 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
221 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
222 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
222 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
223 </ThicknessAnimationUsingKeyFrames> |
223 </ThicknessAnimationUsingKeyFrames> |
224 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
224 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
225 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
225 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
226 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
226 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
227 </ThicknessAnimationUsingKeyFrames> |
227 </ThicknessAnimationUsingKeyFrames> |
228 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
228 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
229 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
229 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
230 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
230 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
231 </DoubleAnimationUsingKeyFrames> |
231 </DoubleAnimationUsingKeyFrames> |
232 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
232 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
233 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
233 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
234 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
234 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
235 </DoubleAnimationUsingKeyFrames> |
235 </DoubleAnimationUsingKeyFrames> |
236 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
236 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
237 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
237 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
238 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
238 <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> |
239 </DoubleAnimationUsingKeyFrames> |
239 </DoubleAnimationUsingKeyFrames> |
240 </Storyboard> |
240 </Storyboard> |
241 </BeginStoryboard> |
241 </BeginStoryboard> |
242 </Trigger.ExitActions> |
242 </Trigger.ExitActions> |
243 </Trigger> |
243 </Trigger> |
244 </ControlTemplate.Triggers> |
244 </ControlTemplate.Triggers> |
245 </ControlTemplate> |
245 </ControlTemplate> |
246 </Setter.Value> |
246 </Setter.Value> |
247 </Setter> |
247 </Setter> |
248 </Style> |
248 </Style> |
249 </Custom:SurfaceThumb.Style> |
249 </Custom:SurfaceThumb.Style> |
250 </Custom:SurfaceThumb> |
250 </Custom:SurfaceThumb> |
251 </Custom:SurfaceTrack.Thumb> |
251 </Custom:SurfaceTrack.Thumb> |
252 <Custom:SurfaceTrack.IncreaseRepeatButton> |
252 <Custom:SurfaceTrack.IncreaseRepeatButton> |
253 <Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge"> |
253 <Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge"> |
254 <Custom:SurfaceRepeatButton.Style> |
254 <Custom:SurfaceRepeatButton.Style> |
255 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
255 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
256 <Setter Property="Background" Value="Transparent"/> |
256 <Setter Property="Background" Value="Transparent"/> |
257 <Setter Property="BorderBrush" Value="Transparent"/> |
257 <Setter Property="BorderBrush" Value="Transparent"/> |
258 <Setter Property="IsTabStop" Value="False"/> |
258 <Setter Property="IsTabStop" Value="False"/> |
259 <Setter Property="Focusable" Value="False"/> |
259 <Setter Property="Focusable" Value="False"/> |
260 <Setter Property="Template"> |
260 <Setter Property="Template"> |
261 <Setter.Value> |
261 <Setter.Value> |
262 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
262 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
263 <Grid> |
263 <Grid> |
264 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
264 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
265 </Grid> |
265 </Grid> |
266 </ControlTemplate> |
266 </ControlTemplate> |
267 </Setter.Value> |
267 </Setter.Value> |
268 </Setter> |
268 </Setter> |
269 </Style> |
269 </Style> |
270 </Custom:SurfaceRepeatButton.Style> |
270 </Custom:SurfaceRepeatButton.Style> |
271 </Custom:SurfaceRepeatButton> |
271 </Custom:SurfaceRepeatButton> |
272 </Custom:SurfaceTrack.IncreaseRepeatButton> |
272 </Custom:SurfaceTrack.IncreaseRepeatButton> |
273 <Custom:SurfaceTrack.DecreaseRepeatButton> |
273 <Custom:SurfaceTrack.DecreaseRepeatButton> |
274 <Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge"> |
274 <Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge"> |
275 <Custom:SurfaceRepeatButton.Style> |
275 <Custom:SurfaceRepeatButton.Style> |
276 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
276 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
277 <Setter Property="Background" Value="Transparent"/> |
277 <Setter Property="Background" Value="Transparent"/> |
278 <Setter Property="BorderBrush" Value="Transparent"/> |
278 <Setter Property="BorderBrush" Value="Transparent"/> |
279 <Setter Property="IsTabStop" Value="False"/> |
279 <Setter Property="IsTabStop" Value="False"/> |
280 <Setter Property="Focusable" Value="False"/> |
280 <Setter Property="Focusable" Value="False"/> |
281 <Setter Property="Template"> |
281 <Setter Property="Template"> |
282 <Setter.Value> |
282 <Setter.Value> |
283 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
283 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
284 <Grid> |
284 <Grid> |
285 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
285 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
286 </Grid> |
286 </Grid> |
287 </ControlTemplate> |
287 </ControlTemplate> |
288 </Setter.Value> |
288 </Setter.Value> |
289 </Setter> |
289 </Setter> |
290 </Style> |
290 </Style> |
291 </Custom:SurfaceRepeatButton.Style> |
291 </Custom:SurfaceRepeatButton.Style> |
292 </Custom:SurfaceRepeatButton> |
292 </Custom:SurfaceRepeatButton> |
293 </Custom:SurfaceTrack.DecreaseRepeatButton> |
293 </Custom:SurfaceTrack.DecreaseRepeatButton> |
294 </Custom:SurfaceTrack> |
294 </Custom:SurfaceTrack> |
295 </Border> |
295 </Border> |
296 </Grid> |
296 </Grid> |
297 <ControlTemplate.Triggers> |
297 <ControlTemplate.Triggers> |
298 <Trigger Property="TickPlacement" Value="TopLeft"> |
298 <Trigger Property="TickPlacement" Value="TopLeft"> |
299 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
299 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
300 </Trigger> |
300 </Trigger> |
301 <Trigger Property="TickPlacement" Value="BottomRight"> |
301 <Trigger Property="TickPlacement" Value="BottomRight"> |
302 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
302 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
303 </Trigger> |
303 </Trigger> |
304 <Trigger Property="TickPlacement" Value="Both"> |
304 <Trigger Property="TickPlacement" Value="Both"> |
305 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
305 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
306 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
306 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
307 </Trigger> |
307 </Trigger> |
308 <Trigger Property="IsMoveToPointEnabled" Value="True"> |
308 <Trigger Property="IsMoveToPointEnabled" Value="True"> |
309 <Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/> |
309 <Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/> |
310 <Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/> |
310 <Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/> |
311 </Trigger> |
311 </Trigger> |
312 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True"> |
312 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True"> |
313 <Trigger.EnterActions> |
313 <Trigger.EnterActions> |
314 <BeginStoryboard> |
314 <BeginStoryboard> |
315 <Storyboard> |
315 <Storyboard> |
316 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
316 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
317 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
317 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
318 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
318 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
319 </Storyboard> |
319 </Storyboard> |
320 </BeginStoryboard> |
320 </BeginStoryboard> |
321 </Trigger.EnterActions> |
321 </Trigger.EnterActions> |
322 <Trigger.ExitActions> |
322 <Trigger.ExitActions> |
323 <BeginStoryboard> |
323 <BeginStoryboard> |
324 <Storyboard> |
324 <Storyboard> |
325 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
325 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
326 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
326 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
327 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
327 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
328 </Storyboard> |
328 </Storyboard> |
329 </BeginStoryboard> |
329 </BeginStoryboard> |
330 </Trigger.ExitActions> |
330 </Trigger.ExitActions> |
331 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
331 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
332 </Trigger> |
332 </Trigger> |
333 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True"> |
333 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True"> |
334 <Trigger.EnterActions> |
334 <Trigger.EnterActions> |
335 <BeginStoryboard> |
335 <BeginStoryboard> |
336 <Storyboard> |
336 <Storyboard> |
337 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
337 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
338 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
338 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
339 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
339 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
340 </Storyboard> |
340 </Storyboard> |
341 </BeginStoryboard> |
341 </BeginStoryboard> |
342 </Trigger.EnterActions> |
342 </Trigger.EnterActions> |
343 <Trigger.ExitActions> |
343 <Trigger.ExitActions> |
344 <BeginStoryboard> |
344 <BeginStoryboard> |
345 <Storyboard> |
345 <Storyboard> |
346 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
346 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
347 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
347 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
348 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
348 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
349 </Storyboard> |
349 </Storyboard> |
350 </BeginStoryboard> |
350 </BeginStoryboard> |
351 </Trigger.ExitActions> |
351 </Trigger.ExitActions> |
352 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
352 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
353 </Trigger> |
353 </Trigger> |
354 <MultiTrigger> |
354 <MultiTrigger> |
355 <MultiTrigger.Conditions> |
355 <MultiTrigger.Conditions> |
356 <Condition Property="IsMoveToPointEnabled" Value="True"/> |
356 <Condition Property="IsMoveToPointEnabled" Value="True"/> |
357 <Condition Property="IsAnyContactCaptured" Value="True"/> |
357 <Condition Property="IsAnyContactCaptured" Value="True"/> |
358 <Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/> |
358 <Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/> |
359 </MultiTrigger.Conditions> |
359 </MultiTrigger.Conditions> |
360 <MultiTrigger.ExitActions> |
360 <MultiTrigger.ExitActions> |
361 <BeginStoryboard> |
361 <BeginStoryboard> |
362 <Storyboard> |
362 <Storyboard> |
363 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
363 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height"/> |
364 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
364 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
365 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
365 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
366 </Storyboard> |
366 </Storyboard> |
367 </BeginStoryboard> |
367 </BeginStoryboard> |
368 </MultiTrigger.ExitActions> |
368 </MultiTrigger.ExitActions> |
369 <MultiTrigger.EnterActions> |
369 <MultiTrigger.EnterActions> |
370 <BeginStoryboard> |
370 <BeginStoryboard> |
371 <Storyboard> |
371 <Storyboard> |
372 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
372 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Height" To="19"/> |
373 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
373 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
374 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
374 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
375 </Storyboard> |
375 </Storyboard> |
376 </BeginStoryboard> |
376 </BeginStoryboard> |
377 </MultiTrigger.EnterActions> |
377 </MultiTrigger.EnterActions> |
378 </MultiTrigger> |
378 </MultiTrigger> |
379 <Trigger Property="IsEnabled" Value="False"> |
379 <Trigger Property="IsEnabled" Value="False"> |
380 <Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/> |
380 <Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/> |
381 <Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/> |
381 <Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/> |
382 <Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/> |
382 <Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/> |
383 </Trigger> |
383 </Trigger> |
384 </ControlTemplate.Triggers> |
384 </ControlTemplate.Triggers> |
385 </ControlTemplate> |
385 </ControlTemplate> |
386 </Setter.Value> |
386 </Setter.Value> |
387 </Setter> |
387 </Setter> |
388 <Style.Triggers> |
388 <Style.Triggers> |
389 <Trigger Property="Orientation" Value="Vertical"> |
389 <Trigger Property="Orientation" Value="Vertical"> |
390 <Setter Property="Width" Value="NaN"/> |
390 <Setter Property="Width" Value="NaN"/> |
391 <Setter Property="MinWidth" Value="30"/> |
391 <Setter Property="MinWidth" Value="30"/> |
392 <Setter Property="Height" Value="NaN"/> |
392 <Setter Property="Height" Value="NaN"/> |
393 <Setter Property="MinHeight" Value="30"/> |
393 <Setter Property="MinHeight" Value="30"/> |
394 <Setter Property="Template"> |
394 <Setter Property="Template"> |
395 <Setter.Value> |
395 <Setter.Value> |
396 <ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}"> |
396 <ControlTemplate TargetType="{x:Type Custom:SurfaceSlider}"> |
397 <ControlTemplate.Resources> |
397 <ControlTemplate.Resources> |
398 <Storyboard x:Key="Touch"> |
398 <Storyboard x:Key="Touch"> |
399 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
399 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
400 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
400 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
401 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
401 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
402 </Storyboard> |
402 </Storyboard> |
403 <Storyboard x:Key="Release"> |
403 <Storyboard x:Key="Release"> |
404 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
404 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
405 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
405 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
406 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
406 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
407 </Storyboard> |
407 </Storyboard> |
408 </ControlTemplate.Resources> |
408 </ControlTemplate.Resources> |
409 <Grid x:Name="GridRoot" HorizontalAlignment="Stretch" Width="Auto" SnapsToDevicePixels="True" Background="Transparent"> |
409 <Grid x:Name="GridRoot" HorizontalAlignment="Stretch" Width="Auto" SnapsToDevicePixels="True" Background="Transparent"> |
410 <Grid.ColumnDefinitions> |
410 <Grid.ColumnDefinitions> |
411 <ColumnDefinition Width="Auto"/> |
411 <ColumnDefinition Width="Auto"/> |
412 <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/> |
412 <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/> |
413 <ColumnDefinition Width="Auto"/> |
413 <ColumnDefinition Width="Auto"/> |
414 </Grid.ColumnDefinitions> |
414 </Grid.ColumnDefinitions> |
415 <Canvas ClipToBounds="False"> |
415 <Canvas ClipToBounds="False"> |
416 <Label x:Name="PART_SurfaceToolTip"> |
416 <Label x:Name="PART_SurfaceToolTip"> |
417 <Label.Style> |
417 <Label.Style> |
418 <Style TargetType="{x:Type Label}"> |
418 <Style TargetType="{x:Type Label}"> |
419 <Setter Property="Template"> |
419 <Setter Property="Template"> |
420 <Setter.Value> |
420 <Setter.Value> |
421 <ControlTemplate TargetType="{x:Type Label}"> |
421 <ControlTemplate TargetType="{x:Type Label}"> |
422 <Grid> |
422 <Grid> |
423 <Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2"> |
423 <Border HorizontalAlignment="Stretch" Margin="0" Width="Auto" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="2"> |
424 <TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/> |
424 <TextBlock Margin="{TemplateBinding Padding}" Background="{x:Null}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"/> |
425 </Border> |
425 </Border> |
426 </Grid> |
426 </Grid> |
427 </ControlTemplate> |
427 </ControlTemplate> |
428 </Setter.Value> |
428 </Setter.Value> |
429 </Setter> |
429 </Setter> |
430 <Setter Property="Visibility" Value="Collapsed"/> |
430 <Setter Property="Visibility" Value="Collapsed"/> |
431 <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/> |
431 <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/> |
432 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
432 <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
433 <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
433 <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"/> |
434 <Setter Property="Padding" Value="2"/> |
434 <Setter Property="Padding" Value="2"/> |
435 </Style> |
435 </Style> |
436 </Label.Style> |
436 </Label.Style> |
437 </Label> |
437 </Label> |
438 </Canvas> |
438 </Canvas> |
439 <TickBar x:Name="TopTick" Margin="0,0,1,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Left" ReservedSpace="30"/> |
439 <TickBar x:Name="TopTick" Margin="0,0,1,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="0" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Left" ReservedSpace="30"/> |
440 <TickBar x:Name="BottomTick" Margin="1,0,0,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="2" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Right" ReservedSpace="30"/> |
440 <TickBar x:Name="BottomTick" Margin="1,0,0,0" Width="4" SnapsToDevicePixels="True" Visibility="Collapsed" Grid.Column="2" Fill="{TemplateBinding BorderBrush}" IsDirectionReversed="True" Placement="Right" ReservedSpace="30"/> |
441 <Rectangle x:Name="TrackBkgd" Fill="{TemplateBinding Background}" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="6" Height="Auto" SnapsToDevicePixels="True" Grid.Column="1"> |
441 <Rectangle x:Name="TrackBkgd" Fill="{TemplateBinding Background}" RadiusX="3" RadiusY="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="6" Height="Auto" SnapsToDevicePixels="True" Grid.Column="1"> |
442 <Rectangle.Stroke> |
442 <Rectangle.Stroke> |
443 <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"> |
443 <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"> |
444 <GradientStop Color="#66000000" Offset="0"/> |
444 <GradientStop Color="#66000000" Offset="0"/> |
445 <GradientStop Color="#4CFFFFFF" Offset="1"/> |
445 <GradientStop Color="#4CFFFFFF" Offset="1"/> |
446 </LinearGradientBrush> |
446 </LinearGradientBrush> |
447 </Rectangle.Stroke> |
447 </Rectangle.Stroke> |
448 </Rectangle> |
448 </Rectangle> |
449 <Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Column="1"> |
449 <Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="1" SnapsToDevicePixels="True" Background="Transparent" Grid.Column="1"> |
450 <Custom:SurfaceTrack x:Name="PART_Track" HorizontalAlignment="Stretch" Grid.Column="1"> |
450 <Custom:SurfaceTrack x:Name="PART_Track" HorizontalAlignment="Stretch" Grid.Column="1"> |
451 <Custom:SurfaceTrack.DecreaseRepeatButton> |
451 <Custom:SurfaceTrack.DecreaseRepeatButton> |
452 <Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge"> |
452 <Custom:SurfaceRepeatButton x:Name="SliderDecrease" Command="Slider.DecreaseLarge"> |
453 <Custom:SurfaceRepeatButton.Style> |
453 <Custom:SurfaceRepeatButton.Style> |
454 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
454 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
455 <Setter Property="Background" Value="Transparent"/> |
455 <Setter Property="Background" Value="Transparent"/> |
456 <Setter Property="BorderBrush" Value="Transparent"/> |
456 <Setter Property="BorderBrush" Value="Transparent"/> |
457 <Setter Property="IsTabStop" Value="False"/> |
457 <Setter Property="IsTabStop" Value="False"/> |
458 <Setter Property="Focusable" Value="False"/> |
458 <Setter Property="Focusable" Value="False"/> |
459 <Setter Property="Template"> |
459 <Setter Property="Template"> |
460 <Setter.Value> |
460 <Setter.Value> |
461 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
461 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
462 <Grid> |
462 <Grid> |
463 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
463 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
464 </Grid> |
464 </Grid> |
465 </ControlTemplate> |
465 </ControlTemplate> |
466 </Setter.Value> |
466 </Setter.Value> |
467 </Setter> |
467 </Setter> |
468 </Style> |
468 </Style> |
469 </Custom:SurfaceRepeatButton.Style> |
469 </Custom:SurfaceRepeatButton.Style> |
470 </Custom:SurfaceRepeatButton> |
470 </Custom:SurfaceRepeatButton> |
471 </Custom:SurfaceTrack.DecreaseRepeatButton> |
471 </Custom:SurfaceTrack.DecreaseRepeatButton> |
472 <Custom:SurfaceTrack.IncreaseRepeatButton> |
472 <Custom:SurfaceTrack.IncreaseRepeatButton> |
473 <Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge"> |
473 <Custom:SurfaceRepeatButton x:Name="SliderIncrease" Command="Slider.IncreaseLarge"> |
474 <Custom:SurfaceRepeatButton.Style> |
474 <Custom:SurfaceRepeatButton.Style> |
475 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
475 <Style TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
476 <Setter Property="Background" Value="Transparent"/> |
476 <Setter Property="Background" Value="Transparent"/> |
477 <Setter Property="BorderBrush" Value="Transparent"/> |
477 <Setter Property="BorderBrush" Value="Transparent"/> |
478 <Setter Property="IsTabStop" Value="False"/> |
478 <Setter Property="IsTabStop" Value="False"/> |
479 <Setter Property="Focusable" Value="False"/> |
479 <Setter Property="Focusable" Value="False"/> |
480 <Setter Property="Template"> |
480 <Setter Property="Template"> |
481 <Setter.Value> |
481 <Setter.Value> |
482 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
482 <ControlTemplate TargetType="{x:Type Custom:SurfaceRepeatButton}"> |
483 <Grid> |
483 <Grid> |
484 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
484 <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> |
485 </Grid> |
485 </Grid> |
486 </ControlTemplate> |
486 </ControlTemplate> |
487 </Setter.Value> |
487 </Setter.Value> |
488 </Setter> |
488 </Setter> |
489 </Style> |
489 </Style> |
490 </Custom:SurfaceRepeatButton.Style> |
490 </Custom:SurfaceRepeatButton.Style> |
491 </Custom:SurfaceRepeatButton> |
491 </Custom:SurfaceRepeatButton> |
492 </Custom:SurfaceTrack.IncreaseRepeatButton> |
492 </Custom:SurfaceTrack.IncreaseRepeatButton> |
493 <Custom:SurfaceTrack.Thumb> |
493 <Custom:SurfaceTrack.Thumb> |
494 <Custom:SurfaceThumb x:Name="Thumb" HorizontalAlignment="Center" Margin="0,0,1,0" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True"> |
494 <Custom:SurfaceThumb x:Name="Thumb" HorizontalAlignment="Center" Margin="0,0,1,0" MinHeight="30" MinWidth="30" Width="30" Height="30" Foreground="Black" SnapsToDevicePixels="True"> |
495 <Custom:SurfaceThumb.Style> |
495 <Custom:SurfaceThumb.Style> |
496 <Style TargetType="{x:Type Custom:SurfaceThumb}"> |
496 <Style TargetType="{x:Type Custom:SurfaceThumb}"> |
497 <Setter Property="Background" Value="Transparent"/> |
497 <Setter Property="Background" Value="Transparent"/> |
498 <Setter Property="Custom:ContactVisualizer.Adapter"> |
498 <Setter Property="Custom:ContactVisualizer.Adapter"> |
499 <Setter.Value> |
499 <Setter.Value> |
500 <Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/> |
500 <Custom:ContactVisualizerRectangleAdapter RadiusX="15" RadiusY="15"/> |
501 </Setter.Value> |
501 </Setter.Value> |
502 </Setter> |
502 </Setter> |
503 <Setter Property="Template"> |
503 <Setter Property="Template"> |
504 <Setter.Value> |
504 <Setter.Value> |
505 <ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}"> |
505 <ControlTemplate TargetType="{x:Type Custom:SurfaceThumb}"> |
506 <ControlTemplate.Resources> |
506 <ControlTemplate.Resources> |
507 <Storyboard x:Key="Press"> |
507 <Storyboard x:Key="Press"> |
508 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
508 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
509 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
509 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
510 </DoubleAnimationUsingKeyFrames> |
510 </DoubleAnimationUsingKeyFrames> |
511 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
511 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
512 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
512 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
513 </ThicknessAnimationUsingKeyFrames> |
513 </ThicknessAnimationUsingKeyFrames> |
514 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
514 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
515 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
515 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
516 </ThicknessAnimationUsingKeyFrames> |
516 </ThicknessAnimationUsingKeyFrames> |
517 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
517 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
518 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
518 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
519 </ThicknessAnimationUsingKeyFrames> |
519 </ThicknessAnimationUsingKeyFrames> |
520 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
520 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
521 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
521 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
522 </ThicknessAnimationUsingKeyFrames> |
522 </ThicknessAnimationUsingKeyFrames> |
523 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
523 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
524 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
524 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
525 </DoubleAnimationUsingKeyFrames> |
525 </DoubleAnimationUsingKeyFrames> |
526 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
526 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
527 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
527 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
528 </DoubleAnimationUsingKeyFrames> |
528 </DoubleAnimationUsingKeyFrames> |
529 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
529 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
530 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
530 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
531 </DoubleAnimationUsingKeyFrames> |
531 </DoubleAnimationUsingKeyFrames> |
532 </Storyboard> |
532 </Storyboard> |
533 <Storyboard x:Key="Release"> |
533 <Storyboard x:Key="Release"> |
534 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
534 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
535 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
535 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
536 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
536 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
537 </DoubleAnimationUsingKeyFrames> |
537 </DoubleAnimationUsingKeyFrames> |
538 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
538 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
539 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
539 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
540 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
540 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
541 </ThicknessAnimationUsingKeyFrames> |
541 </ThicknessAnimationUsingKeyFrames> |
542 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
542 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
543 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
543 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
544 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
544 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
545 </ThicknessAnimationUsingKeyFrames> |
545 </ThicknessAnimationUsingKeyFrames> |
546 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
546 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
547 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
547 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
548 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
548 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
549 </ThicknessAnimationUsingKeyFrames> |
549 </ThicknessAnimationUsingKeyFrames> |
550 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
550 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
551 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
551 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
552 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
552 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
553 </ThicknessAnimationUsingKeyFrames> |
553 </ThicknessAnimationUsingKeyFrames> |
554 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
554 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
555 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
555 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
556 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
556 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
557 </DoubleAnimationUsingKeyFrames> |
557 </DoubleAnimationUsingKeyFrames> |
558 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
558 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
559 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
559 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
560 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
560 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
561 </DoubleAnimationUsingKeyFrames> |
561 </DoubleAnimationUsingKeyFrames> |
562 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
562 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
563 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
563 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
564 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
564 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
565 </DoubleAnimationUsingKeyFrames> |
565 </DoubleAnimationUsingKeyFrames> |
566 </Storyboard> |
566 </Storyboard> |
567 </ControlTemplate.Resources> |
567 </ControlTemplate.Resources> |
568 <Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent"> |
568 <Grid x:Name="Grid" Margin="1" SnapsToDevicePixels="True" Background="Transparent"> |
569 <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/> |
569 <Rectangle x:Name="Base" Fill="{TemplateBinding Background}" Stroke="{x:Null}" StrokeThickness="0" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"/> |
570 <Rectangle x:Name="Button" Fill="#33A4B4BD" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"> |
570 <Rectangle x:Name="Button" Fill="#33A4B4BD" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Width="Auto" Height="Auto" SnapsToDevicePixels="True"> |
571 <Rectangle.Stroke> |
571 <Rectangle.Stroke> |
572 <LinearGradientBrush EndPoint="0,0" StartPoint="0,1"> |
572 <LinearGradientBrush EndPoint="0,0" StartPoint="0,1"> |
573 <GradientStop Color="#66000000" Offset="0"/> |
573 <GradientStop Color="#66000000" Offset="0"/> |
574 <GradientStop Color="#33000000" Offset="1"/> |
574 <GradientStop Color="#33000000" Offset="1"/> |
575 </LinearGradientBrush> |
575 </LinearGradientBrush> |
576 </Rectangle.Stroke> |
576 </Rectangle.Stroke> |
577 </Rectangle> |
577 </Rectangle> |
578 <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True"> |
578 <Rectangle x:Name="RenderOverlay" StrokeThickness="1" RadiusX="15" RadiusY="15" HorizontalAlignment="Stretch" Margin="6" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="1" SnapsToDevicePixels="True"> |
579 <Rectangle.Stroke> |
579 <Rectangle.Stroke> |
580 <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"> |
580 <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"> |
581 <GradientStop Color="#7FFFFFFF" Offset="0"/> |
581 <GradientStop Color="#7FFFFFFF" Offset="0"/> |
582 <GradientStop Color="#0CFFFFFF" Offset="1"/> |
582 <GradientStop Color="#0CFFFFFF" Offset="1"/> |
583 </LinearGradientBrush> |
583 </LinearGradientBrush> |
584 </Rectangle.Stroke> |
584 </Rectangle.Stroke> |
585 <Rectangle.Fill> |
585 <Rectangle.Fill> |
586 <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1"> |
586 <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1"> |
587 <GradientStop Color="#26000000" Offset="0"/> |
587 <GradientStop Color="#26000000" Offset="0"/> |
588 <GradientStop Color="#4CFFFFFF" Offset="1"/> |
588 <GradientStop Color="#4CFFFFFF" Offset="1"/> |
589 </LinearGradientBrush> |
589 </LinearGradientBrush> |
590 </Rectangle.Fill> |
590 </Rectangle.Fill> |
591 </Rectangle> |
591 </Rectangle> |
592 <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/> |
592 <Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="GlowBorder" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0" Color="White" CornerRadius="{Binding ActualHeight, ElementName=GlowBorder}"/> |
593 <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/> |
593 <Rectangle x:Name="Contact" Fill="Transparent" Stroke="{x:Null}"/> |
594 </Grid> |
594 </Grid> |
595 <ControlTemplate.Triggers> |
595 <ControlTemplate.Triggers> |
596 <Trigger Property="IsFocused" Value="True"/> |
596 <Trigger Property="IsFocused" Value="True"/> |
597 <Trigger Property="IsEnabled" Value="False"> |
597 <Trigger Property="IsEnabled" Value="False"> |
598 <Setter Property="Fill" TargetName="Button" Value="#00000000"/> |
598 <Setter Property="Fill" TargetName="Button" Value="#00000000"/> |
599 <Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/> |
599 <Setter Property="Fill" TargetName="RenderOverlay" Value="#00000000"/> |
600 <Setter Property="Stroke" TargetName="Button" Value="#33000000"/> |
600 <Setter Property="Stroke" TargetName="Button" Value="#33000000"/> |
601 <Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/> |
601 <Setter Property="Opacity" TargetName="RenderOverlay" Value="0.5"/> |
602 </Trigger> |
602 </Trigger> |
603 <Trigger Property="IsDragging" Value="True"> |
603 <Trigger Property="IsDragging" Value="True"> |
604 <Trigger.EnterActions> |
604 <Trigger.EnterActions> |
605 <BeginStoryboard> |
605 <BeginStoryboard> |
606 <Storyboard> |
606 <Storyboard> |
607 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
607 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
608 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
608 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/> |
609 </DoubleAnimationUsingKeyFrames> |
609 </DoubleAnimationUsingKeyFrames> |
610 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
610 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
611 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
611 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
612 </ThicknessAnimationUsingKeyFrames> |
612 </ThicknessAnimationUsingKeyFrames> |
613 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
613 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
614 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
614 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
615 </ThicknessAnimationUsingKeyFrames> |
615 </ThicknessAnimationUsingKeyFrames> |
616 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
616 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
617 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
617 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
618 </ThicknessAnimationUsingKeyFrames> |
618 </ThicknessAnimationUsingKeyFrames> |
619 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
619 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
620 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
620 <SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
621 </ThicknessAnimationUsingKeyFrames> |
621 </ThicknessAnimationUsingKeyFrames> |
622 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
622 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
623 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
623 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
624 </DoubleAnimationUsingKeyFrames> |
624 </DoubleAnimationUsingKeyFrames> |
625 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
625 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
626 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
626 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
627 </DoubleAnimationUsingKeyFrames> |
627 </DoubleAnimationUsingKeyFrames> |
628 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
628 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
629 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
629 <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/> |
630 </DoubleAnimationUsingKeyFrames> |
630 </DoubleAnimationUsingKeyFrames> |
631 </Storyboard> |
631 </Storyboard> |
632 </BeginStoryboard> |
632 </BeginStoryboard> |
633 </Trigger.EnterActions> |
633 </Trigger.EnterActions> |
634 <Trigger.ExitActions> |
634 <Trigger.ExitActions> |
635 <BeginStoryboard> |
635 <BeginStoryboard> |
636 <Storyboard> |
636 <Storyboard> |
637 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
637 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(UIElement.Opacity)"> |
638 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
638 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> |
639 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
639 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/> |
640 </DoubleAnimationUsingKeyFrames> |
640 </DoubleAnimationUsingKeyFrames> |
641 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
641 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GlowBorder" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
642 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
642 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
643 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
643 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="2"/> |
644 </ThicknessAnimationUsingKeyFrames> |
644 </ThicknessAnimationUsingKeyFrames> |
645 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
645 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
646 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
646 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
647 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
647 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
648 </ThicknessAnimationUsingKeyFrames> |
648 </ThicknessAnimationUsingKeyFrames> |
649 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
649 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
650 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
650 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
651 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
651 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="5"/> |
652 </ThicknessAnimationUsingKeyFrames> |
652 </ThicknessAnimationUsingKeyFrames> |
653 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
653 <ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(FrameworkElement.Margin)"> |
654 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
654 <SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/> |
655 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
655 <SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="6"/> |
656 </ThicknessAnimationUsingKeyFrames> |
656 </ThicknessAnimationUsingKeyFrames> |
657 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
657 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Base" Storyboard.TargetProperty="(UIElement.Opacity)"> |
658 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
658 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
659 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
659 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
660 </DoubleAnimationUsingKeyFrames> |
660 </DoubleAnimationUsingKeyFrames> |
661 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
661 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Button" Storyboard.TargetProperty="(UIElement.Opacity)"> |
662 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
662 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
663 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
663 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
664 </DoubleAnimationUsingKeyFrames> |
664 </DoubleAnimationUsingKeyFrames> |
665 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
665 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="RenderOverlay" Storyboard.TargetProperty="(UIElement.Opacity)"> |
666 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
666 <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> |
667 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
667 <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/> |
668 </DoubleAnimationUsingKeyFrames> |
668 </DoubleAnimationUsingKeyFrames> |
669 </Storyboard> |
669 </Storyboard> |
670 </BeginStoryboard> |
670 </BeginStoryboard> |
671 </Trigger.ExitActions> |
671 </Trigger.ExitActions> |
672 </Trigger> |
672 </Trigger> |
673 </ControlTemplate.Triggers> |
673 </ControlTemplate.Triggers> |
674 </ControlTemplate> |
674 </ControlTemplate> |
675 </Setter.Value> |
675 </Setter.Value> |
676 </Setter> |
676 </Setter> |
677 </Style> |
677 </Style> |
678 </Custom:SurfaceThumb.Style> |
678 </Custom:SurfaceThumb.Style> |
679 </Custom:SurfaceThumb> |
679 </Custom:SurfaceThumb> |
680 </Custom:SurfaceTrack.Thumb> |
680 </Custom:SurfaceTrack.Thumb> |
681 </Custom:SurfaceTrack> |
681 </Custom:SurfaceTrack> |
682 </Border> |
682 </Border> |
683 </Grid> |
683 </Grid> |
684 <ControlTemplate.Triggers> |
684 <ControlTemplate.Triggers> |
685 <Trigger Property="TickPlacement" Value="TopLeft"> |
685 <Trigger Property="TickPlacement" Value="TopLeft"> |
686 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
686 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
687 </Trigger> |
687 </Trigger> |
688 <Trigger Property="TickPlacement" Value="BottomRight"> |
688 <Trigger Property="TickPlacement" Value="BottomRight"> |
689 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
689 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
690 </Trigger> |
690 </Trigger> |
691 <Trigger Property="TickPlacement" Value="Both"> |
691 <Trigger Property="TickPlacement" Value="Both"> |
692 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
692 <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/> |
693 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
693 <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/> |
694 </Trigger> |
694 </Trigger> |
695 <Trigger Property="IsMoveToPointEnabled" Value="True"> |
695 <Trigger Property="IsMoveToPointEnabled" Value="True"> |
696 <Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/> |
696 <Setter Property="Visibility" TargetName="SliderIncrease" Value="Collapsed"/> |
697 <Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/> |
697 <Setter Property="Visibility" TargetName="SliderDecrease" Value="Collapsed"/> |
698 </Trigger> |
698 </Trigger> |
699 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True"> |
699 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderIncrease" Value="True"> |
700 <Trigger.EnterActions> |
700 <Trigger.EnterActions> |
701 <BeginStoryboard> |
701 <BeginStoryboard> |
702 <Storyboard> |
702 <Storyboard> |
703 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
703 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
704 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
704 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
705 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
705 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
706 </Storyboard> |
706 </Storyboard> |
707 </BeginStoryboard> |
707 </BeginStoryboard> |
708 </Trigger.EnterActions> |
708 </Trigger.EnterActions> |
709 <Trigger.ExitActions> |
709 <Trigger.ExitActions> |
710 <BeginStoryboard> |
710 <BeginStoryboard> |
711 <Storyboard> |
711 <Storyboard> |
712 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
712 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
713 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
713 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
714 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
714 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
715 </Storyboard> |
715 </Storyboard> |
716 </BeginStoryboard> |
716 </BeginStoryboard> |
717 </Trigger.ExitActions> |
717 </Trigger.ExitActions> |
718 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
718 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
719 </Trigger> |
719 </Trigger> |
720 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True"> |
720 <Trigger Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="SliderDecrease" Value="True"> |
721 <Trigger.EnterActions> |
721 <Trigger.EnterActions> |
722 <BeginStoryboard> |
722 <BeginStoryboard> |
723 <Storyboard> |
723 <Storyboard> |
724 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
724 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
725 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
725 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
726 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
726 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
727 </Storyboard> |
727 </Storyboard> |
728 </BeginStoryboard> |
728 </BeginStoryboard> |
729 </Trigger.EnterActions> |
729 </Trigger.EnterActions> |
730 <Trigger.ExitActions> |
730 <Trigger.ExitActions> |
731 <BeginStoryboard> |
731 <BeginStoryboard> |
732 <Storyboard> |
732 <Storyboard> |
733 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
733 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
734 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
734 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
735 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
735 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
736 </Storyboard> |
736 </Storyboard> |
737 </BeginStoryboard> |
737 </BeginStoryboard> |
738 </Trigger.ExitActions> |
738 </Trigger.ExitActions> |
739 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
739 <Setter Property="Fill" TargetName="TrackBkgd" Value="#661B2022"/> |
740 </Trigger> |
740 </Trigger> |
741 <MultiTrigger> |
741 <MultiTrigger> |
742 <MultiTrigger.Conditions> |
742 <MultiTrigger.Conditions> |
743 <Condition Property="IsMoveToPointEnabled" Value="True"/> |
743 <Condition Property="IsMoveToPointEnabled" Value="True"/> |
744 <Condition Property="IsAnyContactCaptured" Value="True"/> |
744 <Condition Property="IsAnyContactCaptured" Value="True"/> |
745 <Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/> |
745 <Condition Property="Custom:Contacts.IsAnyContactOrMouseCapturedWithin" SourceName="Thumb" Value="True"/> |
746 </MultiTrigger.Conditions> |
746 </MultiTrigger.Conditions> |
747 <MultiTrigger.ExitActions> |
747 <MultiTrigger.ExitActions> |
748 <BeginStoryboard> |
748 <BeginStoryboard> |
749 <Storyboard> |
749 <Storyboard> |
750 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
750 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width"/> |
751 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
751 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX"/> |
752 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
752 <DoubleAnimation Duration="00:00:00.2000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY"/> |
753 </Storyboard> |
753 </Storyboard> |
754 </BeginStoryboard> |
754 </BeginStoryboard> |
755 </MultiTrigger.ExitActions> |
755 </MultiTrigger.ExitActions> |
756 <MultiTrigger.EnterActions> |
756 <MultiTrigger.EnterActions> |
757 <BeginStoryboard> |
757 <BeginStoryboard> |
758 <Storyboard> |
758 <Storyboard> |
759 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
759 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="Width" To="19"/> |
760 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
760 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusX" To="9"/> |
761 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
761 <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="TrackBkgd" Storyboard.TargetProperty="RadiusY" To="9"/> |
762 </Storyboard> |
762 </Storyboard> |
763 </BeginStoryboard> |
763 </BeginStoryboard> |
764 </MultiTrigger.EnterActions> |
764 </MultiTrigger.EnterActions> |
765 </MultiTrigger> |
765 </MultiTrigger> |
766 <Trigger Property="IsEnabled" Value="False"> |
766 <Trigger Property="IsEnabled" Value="False"> |
767 <Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/> |
767 <Setter Property="Foreground" TargetName="Thumb" Value="#A5333333"/> |
768 <Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/> |
768 <Setter Property="Fill" TargetName="TrackBkgd" Value="#00000000"/> |
769 <Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/> |
769 <Setter Property="Opacity" TargetName="TrackBkgd" Value="0.35"/> |
770 <Setter Property="Margin" TargetName="Thumb" Value="0"/> |
770 <Setter Property="Margin" TargetName="Thumb" Value="0"/> |
771 </Trigger> |
771 </Trigger> |
772 </ControlTemplate.Triggers> |
772 </ControlTemplate.Triggers> |
773 </ControlTemplate> |
773 </ControlTemplate> |
774 </Setter.Value> |
774 </Setter.Value> |
775 </Setter> |
775 </Setter> |
776 </Trigger> |
776 </Trigger> |
777 </Style.Triggers> |
777 </Style.Triggers> |
778 </Style> |
778 </Style> |
779 </UserControl.Resources> |
779 </UserControl.Resources> |
780 |
780 |
781 <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}"> |
781 <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}"> |
782 <Custom:SurfaceSlider Height="Auto" x:Name="slider" Value="0.5" Width="Auto" |
782 <Custom:SurfaceSlider Height="Auto" x:Name="slider" Value="0.5" Width="Auto" |
783 Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted" ContactTapGesture="slider_ContactTapGesture" Background="#19FFFFFF" Style="{DynamicResource FingersDance.Control.Slider}" /> |
783 Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted" ContactTapGesture="slider_ContactTapGesture" Background="#19FFFFFF" Style="{DynamicResource FingersDance.Control.Slider}" /> |
784 <vw:TimelineView x:Name="tv" Margin="0,15,0,0" Background="{x:Null}"/> |
784 <vw:TimelineView x:Name="tv" Margin="0,15,0,0" Background="{x:Null}"/> |
785 <popup:UserControlClose x:Name="confirmCancelPopup" Question="Êtes-vous de sûr de vouloir effacer cette annotation ?" Visibility="Hidden" ConfirmYesOrNo="confirmCancelPopup_ConfirmYesOrNo" /> |
785 <popup:UserControlClose x:Name="confirmCancelPopup" Question="Êtes-vous de sûr de vouloir effacer cette annotation ?" Visibility="Hidden" ConfirmYesOrNo="confirmCancelPopup_ConfirmYesOrNo" /> |
786 </Grid> |
786 </Grid> |
787 </UserControl> |
787 </UserControl> |