Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个silverlight应用程序,用户可以将其安装为浏览器外的应用程序。
每次更改应用程序的高度和宽度时,我还必须:
如何在代码中更改 Out-of-Browser 应用程序的定义高度和宽度?
我用这个:
private void Application_Startup(object sender, StartupEventArgs e) { MyBlueForm = new MyBlueForm();
this.RootVisual = 启动窗口;
this.MainWindow.Width = 启动窗口.Width; this.MainWindow.Height = 启动窗口.Height; }