file360

Log | Files | Refs

VideoPlayer.xaml (2879B)


      1 <phone:PhoneApplicationPage
      2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      4     xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
      5     xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
      6     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      7     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      8     xmlns:edc="clr-namespace:Microsoft.Expression.Controls;assembly=Microsoft.Expression.Drawing"
      9     xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
     10     x:Class="File360.secret"
     11     FontFamily="{StaticResource PhoneFontFamilyNormal}"
     12     FontSize="{StaticResource PhoneFontSizeNormal}"
     13     Foreground="{StaticResource PhoneForegroundBrush}"
     14     SupportedOrientations="Landscape"
     15     mc:Ignorable="d"
     16     shell:SystemTray.IsVisible="False" Orientation="Landscape">
     17 
     18 
     19     <Grid Background="Black">
     20         <MediaElement x:Name="VideoPlayer" 
     21                       Tap="VideoPlayer_Tap"
     22                       Source="123.wmv" 
     23                       AutoPlay="True"
     24                       MediaOpened="VideoPlayer_MediaOpened"
     25                       MediaEnded="VideoPlayer_MediaEnded"
     26                       MediaFailed="Media_MediaFailed"/>
     27         <Grid x:Name="ControlsContainer" HorizontalAlignment="Left" Height="259" Margin="0,221,0,0" VerticalAlignment="Top" Width="800" Opacity="0.795" Background="{StaticResource PhoneBackgroundBrush}">
     28             <RepeatButton x:Name="Forward" Content="" HorizontalAlignment="Right" Margin="0,91,66,70" VerticalAlignment="Center" Width="120" Height="90" BorderBrush="{x:Null}" Foreground="{x:Null}" Click="Forward_Click">
     29                 <RepeatButton.Background>
     30                     <ImageBrush Stretch="UniformToFill" ImageSource="/Resources/Assets/Images/transport.ff.png"/>
     31                 </RepeatButton.Background>
     32             </RepeatButton>
     33             <Button x:Name="Play" Opacity="1" Click="Play_Click"  Margin="310,75,310,70"/>
     34             <RepeatButton x:Name="Reverse" Content="" HorizontalAlignment="Left" Margin="66,91,0,70" VerticalAlignment="Center" Width="120" Height="90" BorderBrush="{x:Null}" Foreground="{x:Null}" Click="Reverse_Click">
     35                 <RepeatButton.Background>
     36                     <ImageBrush Stretch="UniformToFill" ImageSource="/Resources/Assets/Images/transport.rew.png"/>
     37                 </RepeatButton.Background>
     38             </RepeatButton>
     39             <Slider Name="timelineSlider" Margin="66,3,66,169" ValueChanged="timelineSlider_ValueChanged" VerticalAlignment="Center" Height="87"/>
     40         </Grid>
     41         <Image x:Name="MuteAudio" Tap="MuteAudio_Tap" Opacity="0.5" Source="/Resources/Assets/Images/mute.png" Margin="686,29,38,396"/>
     42     </Grid>
     43 
     44 </phone:PhoneApplicationPage>