开发者

How can I change the OOB height/width of my silverlight application dynamically?

开发者 https://www.devze.com 2022-12-24 06:07 出处:网络
I have a silverlight app which can be installed as an out-of-browser app by the user. Every time I change the height and width of the application, I have to also:

I have a silverlight app which can be installed as an out-of-browser app by the user.

Every time I change the height and width of the application, I have to also:

  • right-click on project
  • properties
  • click Out-of-Brows开发者_开发问答er settings button
  • change the height and width manually

How can I change the defined height and width of the Out-of-Browser application in code?


I use this :

private void Application_Startup(object sender, StartupEventArgs e) { MyBlueForm = new MyBlueForm();

this.RootVisual = startupWindow;

this.MainWindow.Width = startupWindow.Width; this.MainWindow.Height = startupWindow.Height; }

0

精彩评论

暂无评论...
验证码 换一张
取 消