MediaElement: PosterSource,你在哪里?

问题描述 投票:0回答:1

我用的是 MediaElement 在我的程序中。

<MediaElement x:Name="media" Source="MyVideo.mp4" Height="480" Width="640" HorizontalAlignment="Left" VerticalAlignment="Top" LoadedBehavior="Manual" Stretch="Fill" />

在各种文章中,我看到了在我的程序中使用 PosterSource 这个元素的属性。

<MediaElement PosterSource="imageUri" />

我的媒体中没有这个属性。会是哪里出了错?

P.S.我使用的是Visual Studio Enterprise 2015。.NET框架的版本是4.7.2。

wpf xaml mediaelement
1个回答
0
投票

这个功能只有在UWP应用程序中才能使用。

© www.soinside.com 2019 - 2024. All rights reserved.