0

In silverlight out of browser, after login from the silverlight login page, I would like to adjust the position of it. I have tried my luck setting Application.Current.MainWindow.Left and Application.Current.MainWindow.Top but unfortunately it is ignored.

According to MSDN:

You can set this property at run time only if WindowStartupLocation is set to Manual. Additionally, you can set this property at run time only before the end of the Application.Startup event, after which any changes are ignored. For example, you can save the current value to isolated storage in an Application.Exit event handler, and restore the value in an Application.Startup event handler.

I have to adjust the position during runtime but not before application startup. What to do now?

DEN
  • 1,893
  • 7
  • 27
  • 51
  • you should visit :http://stackoverflow.com/questions/1187431/silverlight-3-out-of-browser-set-host-window-size/14038629#14038629 – Jignesh.Raj Nov 07 '13 at 09:53
  • i have visited this site and it isn't helpful to the issue im facing. I want to adjust the position but not the size of the mainwindow – DEN Nov 07 '13 at 09:55
  • check this link :http://stackoverflow.com/questions/10592447/can-i-change-silverlight-out-of-browser-settings-at-runtime – Jignesh.Raj Nov 07 '13 at 10:53

1 Answers1

0

Try This Way:

1 . Click On Sliverlight Project

2 . Select Properties option

3 . Select First tab option Like Silverlight

4 . Click On Out-Of-Browser setting Option

5 . Set the window size, window title or window position etc......

enter image description here

Jignesh.Raj
  • 5,776
  • 4
  • 27
  • 56