在使用自定义控件或者用户控件的时候,查看设计器打不开界面的原因:
Loaded事件中加以下判断条件:
if (!DesignerProperties.GetIsInDesignMode(this))
在使用自定义控件或者用户控件的时候,查看设计器打不开界面的原因:
Loaded事件中加以下判断条件:
if (!DesignerProperties.GetIsInDesignMode(this))
转载于:https://www.cnblogs.com/xxyxxb2080/p/7447983.html