全屏时在 MediaElement 上显示 TextBlock

Display a TextBlock over a MediaElement when in full screen

我旁边有一个MediaElement和一个TextBlock。但是当我将 MediaElement 设置为全屏时,这个 TextBlock 就消失了。任何人都可以分享解决方案吗?

<MediaElement Name="player" Margin="10,5" AreTransportControlsEnabled="True" />
<TextBlock Margin="10"/>

正如我在 , when we are in the Full Window mode, it will go to the FullWindowMediaRoot layer with the MediaTransportControls. In this way the TextBlock will disapper, because there is no place to show the TextBlock. In order to let the TextBlock show, I will recommend you refer to this article 中所说,为 MediaEelement 创建自定义传输控件。