如何在WPF中拖放视频剪辑 [英] How to Drag and drop video clips in WPF

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

问题描述



我是Wpf的新手,我的要求是要以某种类似于电影制作人的方式在wpf中开发应用程序,
我们可以在其中导入视频,拖放选定的视频并通过在媒体元素中单击选定的视频来播放选定的视频.

很好地导入视频
但是问题是如何拖放视频剪辑并在播放器中播放选定的视频.
我找不到在Google中与视频有关的任何帖子拖放到wpf

任何建议将不胜感激.

Hi,

Iam new to Wpf my requirement is to develop application in wpf someway similar to movie maker,
where we can import videos , drag and drop selected videos and play the selected video by clicking on it in a media element.

well importing videos is o.k
but the problem is how to drag and drop video clips and play the selected video in a player.
i cant find any post in google related to videos drag and drop in wpf

any suggestions will be much appreciated..

推荐答案

MediaElement 控件的AllowDrop 属性设置为True.然后处理MediaElementDropDrop 事件.
Set AllowDrop property of the MediaElement control to True. Then handle MediaElement''s DropDrop event.


这篇关于如何在WPF中拖放视频剪辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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