2
在的WinForms,你可以說(用some slightly unexpected behaviour)是否有通用應用程序的DesignMode屬性的等價物?
if (DesignMode)
{
// Do something that only happens on Design mode
}
在WPF中,你有
if (DesignerProperties.GetIsInDesignMode(this))
{
// Do something that only happens on Design mode
}
但我在努力尋找的瘦身PCL世界是一個類似的選項通用應用?