This question is locked. New answers and comments are not allowed.
Hi all,
Need some help here. How can I maximize the web browser while running Silverlight application in web browser.
My MainPage is derived from UserControl.
}
I read from some website that we can set it in Application_Startup() funciton but that only applicable to OutOfBrowser application, how shall I do it for web browser??
Need some help here. How can I maximize the web browser while running Silverlight application in web browser.
My MainPage is derived from UserControl.
public partial class MainPage : UserControl
{
}
I read from some website that we can set it in Application_Startup() funciton but that only applicable to OutOfBrowser application, how shall I do it for web browser??
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MainPage();
// Make sure application open in full screen
if (Application.Current.IsRunningOutOfBrowser)
{
Application.Current.MainWindow.WindowState = WindowState.Maximized;
Application.Current.MainWindow.TopMost = true;
}
}
Thanks