Pergunta

I´m using the MMP:PF in a c#/xaml application and provide my own control elements to handle the player.

Thats why i would like to hide/disable its own native controls that appear on the bottom. ( And in the middle of the screen on screenshot, this one´s just using a theme )

Does anybody know how to do that? I didnt manage to find a property for that.

enter image description here

Foi útil?

Solução 3

From MediaPlayer's reference, IsTimeLineVisible, IsPlayPauseVisible, IsPositionVisible, IsStopVisible and many other visibility properties available. so you can set them to false. take a look at the MediaPlayer Properties

Outras dicas

The magic property to keep players controls from showing up at all:

InteractiveActivationMode="None"

Use like this:

axWindowsMediaPlayer1.uiMode = "None";

Alternative solution to HichemC's answer: you can change the Player control template.

Using Blend, it's not very hard, and it gives you a lot of control. For instance, you can hook your controls on the Player's states (VSM) and be sure your controls are correctly synchronized with the player's internal state.

If you want to hide/show all controls at once:

_player.IsInteractive = true/false;

Here´s an screenshot of the decompiled MediaPlayer.cs for those saying the property does not exists.

enter image description here

I am responsible for the MMPPF at Microsoft and am happy to help wi any questions. I concur with the suggestions here. Though I love this site, we don't monitor it very heavily for MMPPF support questions. If you do need answers from us, the support page on the CodePlex project site is monitored by my team on a daily basis and they're pretty quick to respond. Don't let that deter you from using this forum - I'm just suggesting that our project site is a better way to get answers directly from the developers, if needed.

I hope your app did well.

Mike Downey miked --at--- microsoft.com

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top