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.
Loading

Jaganathan BantheswaranPosted Jul 17, 2011, 2:42 AM
Priya LingePosted Jul 15, 2011, 9:07 AM
Application.Current.MainWindow.WindowState=WindowState.Minimized.
right jaganathan.
Jaganathan BantheswaranPosted Jul 15, 2011, 8:48 AM
But we cant find if it is Silverlight OOB Application.
Priya LingePosted Jul 15, 2011, 8:39 AM
I didn't get any event to find whether window is minimized, but i am trying to find the position of window in minimized state.
Thanks.
Jaganathan BantheswaranPosted Jul 15, 2011, 7:59 AM
Minimize and resize is different thing right...
Priya LingePosted Jul 15, 2011, 4:45 AM
We can get size of browser by Resized Event in Silverlight .When its maximize we can capture that position by this event.
App.Current.Host.Content.Resized +=new EventHandler(Content_Resized);
Void Content_Resized(object sender,RoutedEventArgs e)
{
double height = App.Current.Host.Content.ActualHeight;
double width = App.Current.Host.Content.ActualWidth;
}
Thanks.