Hide MediaPlayer Controls ( Microsoft Media Platform Player Framework )
Solution 1
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
Solution 2
Use like this:
axWindowsMediaPlayer1.uiMode = "None";
Solution 3
The magic property to keep players controls from showing up at all:
InteractiveActivationMode="None"
Solution 4
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.
Solution 5
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.
Ostkontentitan
Updated on June 05, 2022Comments
-
Ostkontentitan over 1 year
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.
-
Ostkontentitan almost 11 yearsThank you very, i should look more closely next time!
-
Chris Bordeman over 8 yearsExcellent. And this one doesn't cause the player to hide other controls.
-
Chris Bordeman over 8 yearsSure would like if you provided a non-hackish way to tell the player to stay at the last frame when finished playing, instead of going back to the first frame.
-
Mark over 5 yearsIsInteractive does not exist as a property, atleast not in my VS 2017
-
Phil Rogers about 5 yearsI don't see this property at all. Nor the others mentioned above (IsTimeLineVisible, IsPlayPauseVisible, IsPositionVisible, IsStopVisible)
-
xleon about 5 yearsGuys, before you downvote something, make sure your statement is true. The property is there if you install Microsoft Player framework vsix extension from archive.codeplex.com/?p=playerframework.