WPF为什么不能播放VS2008WPFVideo02.wmv
<Window x:Class="WpfApplication8.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<MediaElement Height="311" HorizontalAlignment="Left" Name="mediaElement1" VerticalAlignment="Top" Width="503" >
<MediaElement.Triggers>
<EventTrigger RoutedEvent="MediaElement.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<MediaTimeline Source="../../VS2008WPFVideo02.wmv"
Storyboard.TargetName="mediaElement1"
RepeatBehavior="Forever"
/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</MediaElement.Triggers>
</MediaElement>
</Grid>
</Window>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<MediaElement Height="311" HorizontalAlignment="Left" Name="mediaElement1" VerticalAlignment="Top" Width="503" >
<MediaElement.Triggers>
<EventTrigger RoutedEvent="MediaElement.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<MediaTimeline Source="../../VS2008WPFVideo02.wmv"
Storyboard.TargetName="mediaElement1"
RepeatBehavior="Forever"
/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</MediaElement.Triggers>
</MediaElement>
</Grid>
</Window>
...全文
相关推荐
WPF 影像播放與畫面處理
講師姓名:曹祖聖 * 介紹如何在 WPF 應用程式中播放影片 * 介紹影片播放的各項控制技巧 適合的聽眾:WPF 初學者 (難度 100)
3D 繪圖 #6 – 神奇的 3D 動畫
講師姓名:曹祖聖 * 介紹 3D 動畫的概念 * 說明 3D 動畫的實作步驟 * 介紹如何控製 3D 動畫的進行 適合的聽眾:WPF 初學者 (難度 100)
3D 繪圖 #1 – 3D 繪圖概念與 3D WPF 組成元件
講師姓名:曹祖聖 * 說明 3D 繪圖的概念圖 * 介紹模形、攝影機、光源 * 介紹 WPF 中的 3D 繪圖基本方式 適合的聽眾:WPF 初學者 (難度 100)
千變萬化的 WPF 文字方塊 – 控制項的外觀控制
講師姓名:曹祖聖 * 介紹如何使用筆刷功能來變化控制項外觀 * 說明如何製作出不同外觀的文字方塊 適合的聽眾:WPF 初學者 (難度 100)
WPF 樣式與資源 #1 – 如何定義資源與套用樣式
講師姓名:曹祖聖 * 介紹如何在 WPF 中定義資源 * 介紹如何設計樣式 * 介紹如何將樣式套用到控制項上 適合的聽眾:WPF 初學者 (難度 200)


