|
Question : Repaint UserControl in DesignTime
|
|
How to force repaint/reload of UserControl in DesignTime?
When I change property in DesignTime I want to Redraw my UserControl. Look of my user control is dependent on that property value.
Thanks
|
|
Answer : Repaint UserControl in DesignTime
|
|
Really no different than normal. Invalidate!
[Category( "Appearance" )] [DefaultValue( EtchedStyles.Etched )] [Description( "Do you want a etched, raised or simple line?" )]
public EtchedStyles EtchedStyle { get{ return this.etchedStyle; } set { this.etchedStyle = value; Invalidate( ); } }
|
|
|