如何在windowsphone7中使用页面标签创建页面

本文关键字:标签 创建 windowsphone7 | 更新日期: 2023-09-27 18:22:48

<!-- 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为windowsphone7应用程序创建此页面?

如何在windowsphone7中使用页面标签创建页面

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

请从这里开始

然后下载免费的SDK

并尝试遵循快速启动

那么我相信你可以自己构建你的简单应用程序!