- Thread starter
- Moderator
- #11
While sleeping, I had another idea and could confirm it this morning. The fix for closing the routedwindow has a sideeffect
Start playing a short video, leave fullscreen, so it plays in the small overlay and open a context menu while browsing any other window. Keep the menu open and wait for the video to end ... oops your context menu closes by itself
I think I have to add a check if the current window is the fullscreenvideo window before calling closeroutedwindow in that playerstopped event. Maybe even better would be not to close the routedwindow from that event but a method on the fullscreenwindow class called when it' about to close.
Debugging...
Start playing a short video, leave fullscreen, so it plays in the small overlay and open a context menu while browsing any other window. Keep the menu open and wait for the video to end ... oops your context menu closes by itself
I think I have to add a check if the current window is the fullscreenvideo window before calling closeroutedwindow in that playerstopped event. Maybe even better would be not to close the routedwindow from that event but a method on the fullscreenwindow class called when it' about to close.
Debugging...