src/FingersDance.Control.Player/UserControlPlayer.xaml
changeset 163 d5148710e229
parent 162 0b9f989bcb37
child 170 91024994f6eb
equal deleted inserted replaced
162:0b9f989bcb37 163:d5148710e229
   122 						</Setter.Value>
   122 						</Setter.Value>
   123 					</Setter>
   123 					</Setter>
   124 				</Style>
   124 				</Style>
   125 			</Style.BasedOn>
   125 			</Style.BasedOn>
   126 		</Style>
   126 		</Style>
       
   127 		<Storyboard x:Key="Rect1Annotation">
       
   128 			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect1" Storyboard.TargetProperty="(UIElement.Opacity)">
       
   129 				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
       
   130 				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1" KeySpline="0,0,0.5,1"/>
       
   131 				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
       
   132 			</DoubleAnimationUsingKeyFrames>
       
   133 		</Storyboard>
       
   134 		<Storyboard x:Key="Rect2Annotation">
       
   135 			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect2" Storyboard.TargetProperty="(UIElement.Opacity)">
       
   136 				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
       
   137 				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1" KeySpline="0,0,0.5,1"/>
       
   138 				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
       
   139 			</DoubleAnimationUsingKeyFrames>
       
   140 		</Storyboard>
       
   141 		<Storyboard x:Key="Rect3Annotation">
       
   142 			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect3" Storyboard.TargetProperty="(UIElement.Opacity)">
       
   143 				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
       
   144 				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
       
   145 				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
       
   146 			</DoubleAnimationUsingKeyFrames>
       
   147 		</Storyboard>
       
   148 		<Storyboard x:Key="Rect4Annotation">
       
   149 			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rect4" Storyboard.TargetProperty="(UIElement.Opacity)">
       
   150 				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
       
   151 				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1" KeySpline="0,0,0.5,1"/>
       
   152 				<SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
       
   153 			</DoubleAnimationUsingKeyFrames>
       
   154 		</Storyboard>
   127 	</UserControl.Resources>
   155 	</UserControl.Resources>
       
   156 	<UserControl.Triggers>
       
   157 		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
       
   158 			<BeginStoryboard Storyboard="{StaticResource Rect1Annotation}"/>
       
   159 			<BeginStoryboard Storyboard="{StaticResource Rect2Annotation}"/>
       
   160 			<BeginStoryboard Storyboard="{StaticResource Rect3Annotation}"/>
       
   161 			<BeginStoryboard Storyboard="{StaticResource Rect4Annotation}"/>
       
   162 		</EventTrigger>
       
   163 	</UserControl.Triggers>
   128     <Grid x:Name="LayoutRoot" Width="{Binding ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding ActualHeight, ElementName=UserControl, Mode=Default}" Background="{x:Null}">
   164     <Grid x:Name="LayoutRoot" Width="{Binding ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding ActualHeight, ElementName=UserControl, Mode=Default}" Background="{x:Null}">
   129     	<Viewbox Margin="0,0,0,0" Width="{Binding ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding ActualHeight, ElementName=UserControl, Mode=Default}" Stretch="Uniform" AllowDrop="True">
   165     	<Viewbox Margin="0,0,0,0" Width="{Binding ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding ActualHeight, ElementName=UserControl, Mode=Default}" Stretch="Uniform" AllowDrop="True">
   130     		<Grid Width="560" Height="400" HorizontalAlignment="Left" x:Name="GridPlayer">
   166     		<Grid Width="560" Height="400" HorizontalAlignment="Left" x:Name="GridPlayer">
   131     			<MediaElement x:Name="MediaElementVideo" MediaOpened="MediaElementVideo_MediaOpened" Stretch="Fill" ScrubbingEnabled="False" StretchDirection="Both" Margin="0,0,50,0" />
   167     			<MediaElement x:Name="MediaElementVideo" MediaOpened="MediaElementVideo_MediaOpened" Stretch="Fill" ScrubbingEnabled="False" StretchDirection="Both" Margin="0,0,50,0" />
   132     			<Custom:SurfaceButton x:Name="Rewind_area" Content="" ContactDown="ButtonRewind_ContactDown" 
   168     			<Custom:SurfaceButton x:Name="Rewind_area" Content="" ContactDown="ButtonRewind_ContactDown" 
   135     			<Custom:SurfaceButton x:Name="Fast_Forward_area" Content="" ContactDown="ButtonFastForward_ContactDown" Click="ButtonFastForward_Click" 
   171     			<Custom:SurfaceButton x:Name="Fast_Forward_area" Content="" ContactDown="ButtonFastForward_ContactDown" Click="ButtonFastForward_Click" 
   136                                       Foreground="{x:Null}" Background="#FFFFFFFF" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Right" 
   172                                       Foreground="{x:Null}" Background="#FFFFFFFF" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Right" 
   137                                       Style="{DynamicResource FingersDance.Control.PlayerButton}" Margin="0,0,54,0"/>
   173                                       Style="{DynamicResource FingersDance.Control.PlayerButton}" Margin="0,0,54,0"/>
   138     			<Custom:SurfaceButton x:Name="Play_Pause_area" ContactDown="ButtonPlayPause_ContactDown" Click="ButtonPlayPause_Click" Foreground="{x:Null}" 
   174     			<Custom:SurfaceButton x:Name="Play_Pause_area" ContactDown="ButtonPlayPause_ContactDown" Click="ButtonPlayPause_Click" Foreground="{x:Null}" 
   139                                       Background="#FFFFFFFF" BorderBrush="{x:Null}" Margin="72,0,126,0" Style="{DynamicResource FingersDance.Control.PlayerButton}" Opacity="0"/>
   175                                       Background="#FFFFFFFF" BorderBrush="{x:Null}" Margin="72,0,126,0" Style="{DynamicResource FingersDance.Control.PlayerButton}" Opacity="0"/>
   140     			<StackPanel Opacity="1" HorizontalAlignment="Right" Width="50" Background="#FF0046F6" x:Name="StackPanelAnnotation" VerticalAlignment="Bottom" Height="Auto">
   176     			<StackPanel Opacity="1" HorizontalAlignment="Right" Width="50" Background="{x:Null}" x:Name="StackPanelAnnotation" VerticalAlignment="Bottom" Height="Auto">
   141     				<Rectangle x:Name="rect1" Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/>
   177     				<Rectangle x:Name="rect1" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000"/>
   142     				<Rectangle x:Name="rect2" Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/>
   178     				<Rectangle x:Name="rect2" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000"/>
   143     				<Rectangle x:Name="rect3" Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/>
   179     				<Rectangle x:Name="rect3" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000"/>
   144     				<Rectangle x:Name="rect4" Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000" VerticalAlignment="Bottom"/>
   180     				<Rectangle x:Name="rect4" Width="50" Height="50" Fill="{x:Null}" Stroke="#FF000000" VerticalAlignment="Bottom"/>
   145     			</StackPanel>
   181     			</StackPanel>
   146     		</Grid>
   182     		</Grid>
   147     	</Viewbox>
   183     	</Viewbox>
   148     </Grid>
   184     </Grid>
   149  </UserControl>
   185  </UserControl>