2010-03-29 71 views
0

我有一個silverlight應用程序,它可以作爲一個的瀏覽器外應用程序安裝的用戶。如何動態更改Silverlight應用程序的OOB高度/寬度?

每次我改變高度應用的寬度,我也必須:

  • 右鍵單擊項目
  • 性能
  • 點擊外的瀏覽器設置按鈕
  • 手動更改高度和寬度

如何在代碼中更改瀏覽器外應用程序的定義高度和寬度?

回答

1

我使用此:

私人無效Application_Startup(對象發件人,StartupEventArgs E) { MyBlueForm =新MyBlueForm();

this.RootVisual = startupWindow;

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