Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 C# 语言在 Blend/WPF 中播放整个视频中仅20 秒的视频?
谢谢。
这篇C# Corner 文章解释了如何做到这一点,包括一个示例应用程序。
您的 XAML 中需要这样的内容(来自文章):
<MediaElement Name="VideoControl" Width="200" Height ="400" Source="C:\TestV.MPG" > </MediaElement>