在 wpf 中运行视频 [英] Run video in wpf

查看:29
本文介绍了在 wpf 中运行视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以视频的形式实施我的第一个项目,我该怎么做?我想播放一个视频,然后当我点击表单时,视频停止,应用程序转到另一个页面.请帮帮我.

I want my first project to be implemented in the form of a video, how do I do this? I want to play a video and then when I click on the form, video get stopped and app go to another page. please help me.

推荐答案

尝试使用 MediaElement

try using MediaElement

<MediaElement Name="VideoControl" 
              Source="C:\my.wmv" >    
</MediaElement>

这篇关于在 wpf 中运行视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆