This is a migrated thread and some comments may be shown as answers.

Full screen not supported in multiple windows oob

0 Answers 29 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
caleb
Top achievements
Rank 1
caleb asked on 13 Oct 2016, 09:37 AM

Hello Gang,

There doesn't seem to be a way to get the RadMediaPlayer to support multiple windows.  The expand button will expand the main Silverlight window; not the window the RadMenuPlayer is running in.  Here's how I worked around it:

 

private void MediaPlayer_OnFullScreenChanged(object sender, EventArgs e)
        {
            //handle the event
            if (sender is RadMediaPlayer)
            {
                var mp = (RadMediaPlayer) sender;
                mp.IsFullScreen = false;
                //Always set to false.  Look at a timer. 
                if (lastFired < DateTime.UtcNow.AddMilliseconds(-100))
                {
                    if (window.WindowState == WindowState.Normal)
                    {
                        window.WindowState = WindowState.Maximized;
                    }
                    else if (window.WindowState == WindowState.Maximized)
                    {
                        window.WindowState = WindowState.Normal;
                    }
                }
                lastFired = DateTime.UtcNow;
            }
        }

 

lastFired is a class variable; as is window.

window = Window.GetWindow(this);

 

Cheers,

 

Caleb

 

 

No answers yet. Maybe you can help?

Tags
MediaPlayer
Asked by
caleb
Top achievements
Rank 1
Share this question
or