4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
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:Custom="http://schemas.microsoft.com/surface/2008" xmlns:Microsoft_Surface_Presentation_Generic="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic" |
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" |
8 x:Class="FingersDance.Control.Player.UserControlPlayer" |
8 x:Class="FingersDance.Control.Player.UserControlPlayer" |
9 x:Name="UserControl" |
9 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" |
10 Width="560" Height="400"> |
10 Width="560" Height="400"> |
11 <UserControl.Resources> |
11 <UserControl.Resources> |
12 <Storyboard x:Key="OnClick1"/> |
12 <Storyboard x:Key="OnClick1"/> |
13 <Style x:Key="FingersDance.Control.PlayerButton" TargetType="{x:Type Custom:SurfaceButton}"> |
13 <Style x:Key="FingersDance.Control.PlayerButton" TargetType="{x:Type Custom:SurfaceButton}"> |
14 <Style.BasedOn> |
14 <Style.BasedOn> |
123 </Setter> |
123 </Setter> |
124 </Style> |
124 </Style> |
125 </Style.BasedOn> |
125 </Style.BasedOn> |
126 </Style> |
126 </Style> |
127 </UserControl.Resources> |
127 </UserControl.Resources> |
128 <Grid x:Name="LayoutRoot" Width="{Binding ActualWidth, ElementName=UserControl, Mode=Default}" Height="{Binding ActualHeight, ElementName=UserControl, Mode=Default}" Background="{x:Null}" > |
128 <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"> |
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"> |
130 <Grid Width="560" Height="400" HorizontalAlignment="Left" x:Name="GridPlayer"> |
130 <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" /> |
131 <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" Click="ButtonRewind_Click" Foreground="{x:Null}" Background="#FFFFFFFF" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Left" Style="{DynamicResource FingersDance.Control.PlayerButton}" Margin="0,0,0,196"/> |
132 <Custom:SurfaceButton x:Name="Rewind_area" Content="" ContactDown="ButtonRewind_ContactDown" |
133 <Custom:SurfaceButton x:Name="Fast_Forward_area" Content="" ContactDown="ButtonFastForward_ContactDown" Click="ButtonFastForward_Click" Foreground="{x:Null}" Background="#FFFFFFFF" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Right" Style="{DynamicResource FingersDance.Control.PlayerButton}" Margin="0,0,54,196"/> |
133 Click="ButtonRewind_Click" Foreground="{x:Null}" Background="#FFFFFFFF" BorderBrush="{x:Null}" |
134 <Custom:SurfaceButton x:Name="Play_Pause_area" ContactDown="ButtonPlayPause_ContactDown" Click="ButtonPlayPause_Click" Foreground="{x:Null}" Background="#FFFFFFFF" BorderBrush="{x:Null}" Margin="72,0,126,196" Style="{DynamicResource FingersDance.Control.PlayerButton}" Opacity="0"/> |
134 Opacity="0" Width="72" HorizontalAlignment="Left" Style="{DynamicResource FingersDance.Control.PlayerButton}" Margin="0,0,0,0"/> |
135 <StackPanel Opacity="1" HorizontalAlignment="Right" Width="50" Background="#FF0046F6" x:Name="StackPanelAnnotation" VerticalAlignment="Bottom" Height="Auto"> |
135 <Custom:SurfaceButton x:Name="Fast_Forward_area" Content="" ContactDown="ButtonFastForward_ContactDown" Click="ButtonFastForward_Click" |
136 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/> |
136 Foreground="{x:Null}" Background="#FFFFFFFF" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Right" |
137 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/> |
137 Style="{DynamicResource FingersDance.Control.PlayerButton}" Margin="0,0,54,0"/> |
138 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/> |
138 <Custom:SurfaceButton x:Name="Play_Pause_area" ContactDown="ButtonPlayPause_ContactDown" Click="ButtonPlayPause_Click" Foreground="{x:Null}" |
139 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000" VerticalAlignment="Bottom"/> |
139 Background="#FFFFFFFF" BorderBrush="{x:Null}" Margin="72,0,126,0" Style="{DynamicResource FingersDance.Control.PlayerButton}" Opacity="0"/> |
140 </StackPanel> |
140 <StackPanel Opacity="1" HorizontalAlignment="Right" Width="50" Background="#FF0046F6" x:Name="StackPanelAnnotation" VerticalAlignment="Bottom" Height="Auto"> |
141 </Grid> |
141 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/> |
142 </Viewbox> |
142 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/> |
143 </Grid> |
143 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000"/> |
|
144 <Rectangle Width="50" Height="50" Fill="#FFFFFFFF" Stroke="#FF000000" VerticalAlignment="Bottom"/> |
|
145 </StackPanel> |
|
146 </Grid> |
|
147 </Viewbox> |
|
148 </Grid> |
144 </UserControl> |
149 </UserControl> |