ContentControl内的全屏MediaElement问题 [英] Fullscreen MediaElement inside ContentControl Problem
问题描述
通过放大MediaElement的大小我可以在ContentControl中全屏显示它。
问题是当我从另一个文件中获取ContentControl的背景和屏幕时会显示。
所以在它们之间会看到一个白盒子。当我隐藏ContentControl时,MediaElement也不会显示。
如何解决这个问题?无论如何设置元素的背景颜色?
Charlie Chang L
Hello Charlie,
为什么要在ContentControl中托管MediaElement?通常,您不需要这样做。你能解释一下你为什么这么做吗?你能提供一些重现问题的样本XAML吗?我可以看看吗?
谢谢,
James
By enlarge the size of MediaElement I can fullscreen it in a ContentControl.
The problem is that when I source another file the background of ContentControl and the Screen will be displayed.
So a whitebox will be saw in between. When I hide the ContentControl, the MediaElement will not be displayed as well.
How can I solve this problem? Anyway to set the background color of an element?
Charlie Chang L
Hello Charlie,
Why are you hosting your MediaElement in a ContentControl? Typically you would not need to do this. Can you explain why you are doing this? Can you provide some sample XAML that reproduces the issue so I can take a look?
Thanks,
James
这篇关于ContentControl内的全屏MediaElement问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!