【问题标题】:How can I change the OOB height/width of my silverlight application dynamically?如何动态更改 silverlight 应用程序的 OOB 高度/宽度?
【发布时间】:2011-02-01 23:12:40
【问题描述】:

我有一个 silverlight 应用程序,用户可以将其安装为 浏览器外 应用程序。

每次更改应用程序的heightwidth时,我还必须:

  • 右键单击项目
  • 属性
  • 点击浏览器外设置按钮
  • 手动更改高度和宽度

如何在代码中更改 Out-of-Browser 应用程序的定义高度和宽度?

【问题讨论】:

    标签: silverlight out-of-browser


    【解决方案1】:

    我用这个:

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

    this.RootVisual = startupWindow;

    this.MainWindow.Width = startupWindow.Width; this.MainWindow.Height = 启动窗口.Height; }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-08
      • 2012-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多