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

Maximize web browser during loading (URGENT!)

0 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
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

No answers yet. Maybe you can help?

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