How do I tell if the browser window is Maximized in Silverlight/C#?
The “Form” maximize feature will not work because I am writing a silverlight app that runs in the browser.
I have tried this:
App.Current.Host.Content.FullScreenChanged += new EventHandler(Content_FullScreenChanged);
but this event handler is not called when I maximize the window.
Maximized is not full screen
App.Current.Host.Content.IsFullScreen;
returns false even if I maximize the window.
The browser does not pass that kind of information down to its content.
You can probably detect a resize event and then compare the browser window size with the screen size with some tolerance for the browser borders… however you will never be able to be sure if that is maximized.