Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm creating a simple movie/music player Windows Store app in Visual Studio 2013 using VB.net and XAML.

I am using a MediaElement and when it is set as IsFullWindow = True, all my controls are hidden behind it.

Is there a way that I can show a TextBlock in front of the MediaElement so that I can add in subtitles?

Any help would be much appreciated.

Thanks
Posted
Updated 17-Dec-14 5:06am
v3

1 solution

Since the IsFullWindow property has to put all other controls to the background, there is no way for you to do this. But yes, there is a way to do this, because many other Media players such as VLC media player makes a use of such technique, to show the subtitles on screen in the Full Window mode too; which makes this behaviour possible.

However, Windows API does teach you to program a personal (custom) full window style for your applications, to design the entire template of your application, to look like a FullWindow and show other controls on it too. This one can be implmented by you, which will let you control the entire design and the UI controls. The built-in Microsoft's controls don't let you get off the track while building applications, and you have to stick to the UI guidelines, to go off-track you can only use your own controls.

Read this documentation[^] to learn more on creating custom media transport controls.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900