【问题标题】:Is there an equivelent of the DesignMode property for Universal Apps?通用应用程序是否有等效的 DesignMode 属性?
【发布时间】:2014-07-13 18:52:59
【问题描述】:

在 Winforms 中你可以说(some slightly unexpected behaviour

if (DesignMode)
{
    // Do something that only happens on Design mode
}

在 WPF 中,你有

if (DesignerProperties.GetIsInDesignMode(this))
{
    // Do something that only happens on Design mode
}

但我正在努力为精简的 PCL 世界寻找一个类似的选项,即通用应用程序?

【问题讨论】:

    标签: c# win-universal-app


    【解决方案1】:

    对于通用应用,有:

    Windows.ApplicationModel.DesignMode.DesignModeEnabled
    

    【讨论】:

      猜你喜欢
      • 2010-09-30
      • 1970-01-01
      • 2012-12-03
      • 2017-02-16
      • 1970-01-01
      • 2014-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多