Maximize web browser during loading (URGENT!)

1 posts, 0 answers
  1. Ihate
    Ihate avatar
    1 posts
    Member since:
    Jun 2012

    Posted 28 Jun 2012 Link to this post

    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;





Back to Top