In Winforms you can say (with some slightly unexpected behaviour )
if (DesignMode)
{
// Do something that only happens on Design mode
}
In WPF, you've got
if (DesignerProperties.GetIsInDesignMode(this))
{
// Do something that only happens on Design mode
}
But I'm struggling to find a similar option for the slimmed down PCL world that is Universal apps?
对于通用应用程序,有:
Windows.ApplicationModel.DesignMode.DesignModeEnabled
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.