0

我想在视频顶部添加椭圆等形状。现在,如果我在媒体播放器元素上添加一个形状,我可以在 wpf 设计器中看到它,但在运行时看不到它。

   <Grid>

        <controls:MediaPlayerElement x:Name="mediaPlayerElement"
            Source="https://mediaplatstorage1.blob.core.windows.net/windows-universal-samples-media/elephantsdream-clip-h264_sd-aac_eng-aac_spa-aac_eng_commentary-srt_eng-srt_por-srt_swe.mkv"
            AreTransportControlsEnabled="True" />
        <Grid>
            <Ellipse HorizontalAlignment="Center" Height="155"  Width="273" Fill="Black" Opacity="100" />
        </Grid>
    </Grid>

与 VLClibSharp 播放器相同。唯一的区别是,我在 wpf 设计器中看不到这个播放器的形状。

我怎样才能在运行时看到形状?

4

0 回答 0