如何在Windows Phone 7中使用页面标签创建页面?

时间:2012-02-06 10:59:44

标签: c# windows-phone-7

<!-- To interactively stop, pause, and play the media, the LoadedBehavior 
       property of the MediaElement must be set to "Manual". -->
<MediaElement Source="media\numbers.wmv" Name="myMediaElement" 
 Width="450" Height="250" LoadedBehavior="Manual" UnloadedBehavior="Stop" Stretch="Fill" 
 MediaOpened="Element_MediaOpened" MediaEnded="Element_MediaEnded"/>

<StackPanel HorizontalAlignment="Center" Width="450" Orientation="Horizontal">

  <!-- Play button. -->
  <Image Source="images\UI_play.gif" MouseDown="OnMouseDownPlayMedia" Margin="5" />

  <!-- Pause button. -->
  <Image Source="images\UI_pause.gif" MouseDown="OnMouseDownPauseMedia" Margin="5" />

  <!-- Stop button. -->
  <Image Source="images\UI_stop.gif" MouseDown="OnMouseDownStopMedia" Margin="5" />

  <!-- Volume slider. This slider allows a Volume range between 0 and 1. -->
  <TextBlock Foreground="White" VerticalAlignment="Center" Margin="5"  >Volume</TextBlock>
  <Slider Name="volumeSlider" VerticalAlignment="Center" ValueChanged="ChangeMediaVolume" 
   Minimum="0" Maximum="1" Value="0.5" Width="70"/>

  <!-- Volume slider. This slider allows you to change the speed of the media playback. -->
  <TextBlock Foreground="White" Margin="5"  VerticalAlignment="Center">Speed</TextBlock>
  <Slider Name="speedRatioSlider" VerticalAlignment="Center" ValueChanged="ChangeMediaSpeedRatio" 
   Value="1" Width="70" />

  <!-- Seek to slider. Ths slider allows you to jump to different parts of the media playback. -->
  <TextBlock Foreground="White" Margin="5"  VerticalAlignment="Center">Seek To</TextBlock>
  <Slider Name="timelineSlider" Margin="5" ValueChanged="SeekToMediaPosition" Width="70"/>

</StackPanel>

如何使用vs2010为windows phone7 app创建此页面?

1 个答案:

答案 0 :(得分:1)

非常奇怪的问题。 您似乎只是从网站复制了XAML,并且不知道如何构建WP7应用程序。

请从here

开始

然后下载free SDK

并尝试关注Quickstart

然后我确信你可以自己构建简单的应用程序!