且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在设计时间内看到自定义控件属性的变化

更新时间:2023-12-06 08:16:58

在自定义属性设置器中,调用控件上的Invalidate()方法。
In the custom property setter, call the Invalidate() method on the control.


对于designTime,您必须重建控件以刷新它在设计师。
For designTime you have to rebuild the control to refresh it in the designer.