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

Maximize web browser during loading (URGENT!)

0 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ihate
Top achievements
Rank 1
Ihate asked on 28 Jun 2012, 08:02 AM
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.

 

 

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

Tags
General Discussions
Asked by
Ihate
Top achievements
Rank 1
Share this question
or