Mediaplayer controls visibility event

Topics: Windows 8 Xaml
Nov 4, 2014 at 11:43 AM
Edited Nov 4, 2014 at 12:01 PM
Hi there,
I need an event that triggers when the visibility of controls (play/pause, seek ecc.) changes.

I have another panel with more infos I want to show up and hide exacly at the same time of the default controls without modifing the template.

For now I have accomplished it catching PointerMove and Tapped events plus an additional DispatcherTimer to hide my custom panel after a few seconds.
It's dirty, not precise and a lot of code. I could just remove.

Is there a way to do this in a sleek way?
Nov 4, 2014 at 12:56 PM
Edited Nov 25, 2014 at 12:46 PM
I've eventually figured out.

The event IsInteractiveChanged is what I needed, checking the property IsInteractive to know if the controls are displayed.
Player.IsInteractiveChanged += PlayerOnIsInteractiveChanged;

private void PlayerOnIsInteractiveChanged(object sender, RoutedEventArgs routedEventArgs) {
            if (Player.IsInteractive) {
            } else {
Marked as answer by LuigiX on 11/25/2014 at 5:46 AM