src/FingersDance.Control.Player/UserControlPlayer.xaml
author PAMPHILE Jonathan <pamphile@efrei.fr>
Thu, 12 Nov 2009 23:50:31 +0100
changeset 193 96374d03e714
parent 174 45c9e55fcf23
child 197 3455e574e096
permissions -rw-r--r--
Gesture
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
4f1ea403073d Projet Menu avec profondeur complete.
sarias
parents:
diff changeset
     1
<UserControl
4f1ea403073d Projet Menu avec profondeur complete.
sarias
parents:
diff changeset
     2
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4f1ea403073d Projet Menu avec profondeur complete.
sarias
parents:
diff changeset
     3
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4f1ea403073d Projet Menu avec profondeur complete.
sarias
parents:
diff changeset
     4
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
4f1ea403073d Projet Menu avec profondeur complete.
sarias
parents:
diff changeset
     5
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
4f1ea403073d Projet Menu avec profondeur complete.
sarias
parents:
diff changeset
     6
	mc:Ignorable="d"
92
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
     7
	xmlns:Custom="http://schemas.microsoft.com/surface/2008" xmlns:Microsoft_Surface_Presentation_Generic="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic"
173
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents: 172
diff changeset
     8
	xmlns:FingersDance_Control_Player="clr-namespace:FingersDance.Control.Player"
3
4f1ea403073d Projet Menu avec profondeur complete.
sarias
parents:
diff changeset
     9
	x:Class="FingersDance.Control.Player.UserControlPlayer"
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 118
diff changeset
    10
	x:Name="UserControl" AllowDrop="True" Custom:SurfaceDragDrop.DragOver="Play_Pause_area_DragOver" Custom:SurfaceDragDrop.DragEnter="Play_Pause_area_DragEnter" Custom:SurfaceDragDrop.DragLeave="Play_Pause_area_DragLeave" Custom:SurfaceDragDrop.Drop="Play_Pause_area_Drop"
174
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 173
diff changeset
    11
	Width="560" Height="400" 
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 173
diff changeset
    12
    xmlns:GestureControl="clr-namespace:GestureControl;assembly=GestureControl">
4
7b7f95dc9027 skin 1 du player
riley
parents: 3
diff changeset
    13
	<UserControl.Resources>
7b7f95dc9027 skin 1 du player
riley
parents: 3
diff changeset
    14
		<Storyboard x:Key="OnClick1"/>
92
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    15
		<Style x:Key="FingersDance.Control.PlayerButton" TargetType="{x:Type Custom:SurfaceButton}">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    16
			<Style.BasedOn>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    17
				<Style TargetType="{x:Type ButtonBase}">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    18
					<Setter Property="SnapsToDevicePixels" Value="True"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    19
					<Setter Property="FocusVisualStyle">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    20
						<Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    21
							<Style>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    22
								<Setter Property="Control.Template">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    23
									<Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    24
										<ControlTemplate/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    25
									</Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    26
								</Setter>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    27
							</Style>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    28
						</Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    29
					</Setter>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    30
					<Setter Property="FontFamily" Value="Segoe UI"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    31
					<Setter Property="FontSize" Value="10"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    32
					<Setter Property="Foreground" Value="Black"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    33
					<Setter Property="Background" Value="#33A4B4BD"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    34
					<Setter Property="BorderBrush">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    35
						<Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    36
							<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    37
								<GradientStop Color="#7FFFFFFF" Offset="0"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    38
								<GradientStop Color="#0CFFFFFF" Offset="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    39
							</LinearGradientBrush>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    40
						</Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    41
					</Setter>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    42
					<Setter Property="BorderThickness" Value="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    43
					<Setter Property="HorizontalContentAlignment" Value="Center"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    44
					<Setter Property="VerticalContentAlignment" Value="Center"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    45
					<Setter Property="Padding" Value="15,6"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    46
					<Setter Property="IsTabStop" Value="False"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    47
					<Setter Property="Focusable" Value="False"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    48
					<Setter Property="MinWidth" Value="30"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    49
					<Setter Property="MinHeight" Value="30"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    50
					<Setter Property="Template">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    51
						<Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    52
							<ControlTemplate TargetType="{x:Type ButtonBase}">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    53
								<ControlTemplate.Resources>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    54
									<Storyboard x:Key="Press">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    55
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    56
											<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    57
										</DoubleAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    58
										<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    59
											<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="-3"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    60
										</ThicknessAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    61
									</Storyboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    62
									<Storyboard x:Key="Release">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    63
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    64
											<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    65
											<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    66
										</DoubleAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    67
										<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    68
											<SplineThicknessKeyFrame KeyTime="00:00:00" Value="-3"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    69
											<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    70
										</ThicknessAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    71
									</Storyboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    72
								</ControlTemplate.Resources>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    73
								<Grid x:Name="Grid" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    74
									<Border x:Name="Shadow" Margin="1,1,1,0" BorderBrush="{x:Null}" BorderThickness="0,0,0,1" CornerRadius="6" Padding="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    75
									<Rectangle x:Name="Base" Fill="{TemplateBinding Background}" StrokeThickness="1" RadiusX="5" RadiusY="5" Margin="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Stroke="{x:Null}"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    76
									<Rectangle x:Name="RenderOverlay" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="4" RadiusY="4" Margin="2" Opacity="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Fill="{x:Null}"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    77
									<Microsoft_Surface_Presentation_Generic:SurfaceShadowChrome x:Name="Glow" Margin="1" Opacity="0" Color="White" CornerRadius="4"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    78
									<ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    79
										<ContentPresenter.RenderTransform>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    80
											<TranslateTransform X="0" Y="-1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    81
										</ContentPresenter.RenderTransform>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    82
									</ContentPresenter>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    83
								</Grid>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    84
								<ControlTemplate.Triggers>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    85
									<Trigger Property="IsPressed" Value="True">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    86
										<Trigger.EnterActions>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    87
											<BeginStoryboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    88
												<Storyboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    89
													<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    90
														<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    91
													</DoubleAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    92
													<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    93
														<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="-3"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    94
													</ThicknessAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    95
												</Storyboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    96
											</BeginStoryboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    97
										</Trigger.EnterActions>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    98
										<Trigger.ExitActions>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
    99
											<BeginStoryboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   100
												<Storyboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   101
													<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(UIElement.Opacity)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   102
														<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   103
														<SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="0"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   104
													</DoubleAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   105
													<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glow" Storyboard.TargetProperty="(FrameworkElement.Margin)">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   106
														<SplineThicknessKeyFrame KeyTime="00:00:00" Value="-3"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   107
														<SplineThicknessKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   108
													</ThicknessAnimationUsingKeyFrames>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   109
												</Storyboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   110
											</BeginStoryboard>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   111
										</Trigger.ExitActions>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   112
									</Trigger>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   113
									<Trigger Property="IsEnabled" Value="True"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   114
									<Trigger Property="IsEnabled" Value="False">
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   115
										<Setter Property="Fill" TargetName="RenderOverlay" Value="#0CFFFFFF"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   116
										<Setter Property="Stroke" TargetName="RenderOverlay" Value="#33FFFFFF"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   117
										<Setter Property="Stroke" TargetName="Base" Value="#33000000"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   118
										<Setter Property="BorderBrush" TargetName="Shadow" Value="#00000000"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   119
										<Setter Property="Foreground" Value="#A5333333"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   120
										<Setter Property="Background" Value="Transparent"/>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   121
									</Trigger>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   122
								</ControlTemplate.Triggers>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   123
							</ControlTemplate>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   124
						</Setter.Value>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   125
					</Setter>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   126
				</Style>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   127
			</Style.BasedOn>
3a0b48be34bd New positions for the player's button
riley
parents: 57
diff changeset
   128
		</Style>
163
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   129
		<Storyboard x:Key="Rect1Annotation">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   130
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect1" Storyboard.TargetProperty="(UIElement.Opacity)">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   131
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   132
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1" KeySpline="0,0,0.5,1"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   133
				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   134
			</DoubleAnimationUsingKeyFrames>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   135
		</Storyboard>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   136
		<Storyboard x:Key="Rect2Annotation">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   137
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect2" Storyboard.TargetProperty="(UIElement.Opacity)">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   138
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   139
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1" KeySpline="0,0,0.5,1"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   140
				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   141
			</DoubleAnimationUsingKeyFrames>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   142
		</Storyboard>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   143
		<Storyboard x:Key="Rect3Annotation">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   144
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect3" Storyboard.TargetProperty="(UIElement.Opacity)">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   145
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   146
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   147
				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   148
			</DoubleAnimationUsingKeyFrames>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   149
		</Storyboard>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   150
		<Storyboard x:Key="Rect4Annotation">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   151
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect4" Storyboard.TargetProperty="(UIElement.Opacity)">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   152
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   153
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1" KeySpline="0,0,0.5,1"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   154
				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   155
			</DoubleAnimationUsingKeyFrames>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   156
		</Storyboard>
4
7b7f95dc9027 skin 1 du player
riley
parents: 3
diff changeset
   157
	</UserControl.Resources>
163
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   158
	<UserControl.Triggers>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   159
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   160
			<BeginStoryboard Storyboard="{StaticResource Rect1Annotation}"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   161
			<BeginStoryboard Storyboard="{StaticResource Rect2Annotation}"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   162
			<BeginStoryboard Storyboard="{StaticResource Rect3Annotation}"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   163
			<BeginStoryboard Storyboard="{StaticResource Rect4Annotation}"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   164
		</EventTrigger>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   165
	</UserControl.Triggers>
170
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   166
    <Grid x:Name="LayoutRoot" Width="{Binding Path=ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding Path=ActualHeight, ElementName=UserControl, Mode=Default}" Background="{x:Null}">
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   167
    	<Viewbox Margin="0,0,0,0" Width="{Binding Path=ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding Path=ActualHeight, ElementName=UserControl, Mode=Default}" Stretch="Uniform" AllowDrop="True">
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 118
diff changeset
   168
    		<Grid Width="560" Height="400" HorizontalAlignment="Left" x:Name="GridPlayer">
170
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   169
    			<Grid.RowDefinitions>
173
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents: 172
diff changeset
   170
    				<RowDefinition Height="0.305*"/>
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents: 172
diff changeset
   171
    				<RowDefinition Height="0.593*"/>
170
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   172
    				<RowDefinition Height="0.102*"/>
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   173
    			</Grid.RowDefinitions>
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   174
    			<Grid.ColumnDefinitions>
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   175
    				<ColumnDefinition Width="0.912*"/>
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   176
    				<ColumnDefinition Width="0.088*"/>
91024994f6eb UserControl InfoUser V1
ARIAS Santiago
parents: 163
diff changeset
   177
    			</Grid.ColumnDefinitions>
173
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents: 172
diff changeset
   178
    			<FingersDance_Control_Player:UserControlInfoUser Margin="0,-0.498,0,11.298" x:Name="usercontrolInfoUser" Grid.ColumnSpan="1" Grid.Row="2" Height="30"/>
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents: 172
diff changeset
   179
    			<MediaElement x:Name="MediaElementVideo" MediaOpened="MediaElementVideo_MediaOpened" Stretch="Fill" ScrubbingEnabled="False" StretchDirection="Both" Grid.RowSpan="2" />
e99fe78cd168 Gesture Control Integration in the Control Player
ARIAS Santiago
parents: 172
diff changeset
   180
    			<StackPanel Opacity="1" Background="{x:Null}" x:Name="StackPanelAnnotation" Height="Auto" d:LayoutOverrides="Height" Margin="-1,77.8,0,0" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2">
163
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   181
    				<Rectangle x:Name="rect1" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   182
    				<Rectangle x:Name="rect2" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   183
    				<Rectangle x:Name="rect3" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000"/>
d5148710e229 Display Annotations with storyboard effect
sarias
parents: 162
diff changeset
   184
    				<Rectangle x:Name="rect4" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000" VerticalAlignment="Bottom"/>
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 118
diff changeset
   185
    			</StackPanel>
193
96374d03e714 Gesture
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 174
diff changeset
   186
                <GestureControl:GestureControl HorizontalAlignment="Stretch" x:Name="gestureControl" VerticalAlignment="Stretch" Content="" Grid.Row="1" GestureEvent="GestureDetected"/>
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 118
diff changeset
   187
    		</Grid>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 118
diff changeset
   188
    	</Viewbox>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 118
diff changeset
   189
    </Grid>
34
9e222810f5b5 User Control Player
sarias
parents: 10
diff changeset
   190
 </UserControl>