Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default value for property
Message
From
17/09/2005 20:18:42
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01050633
Message ID:
01050670
Views:
10
Einar,

>... is the refresh call in the set. Is that the standard way to do this?<

You can do all sorts of great stuff in property set methods, and if it's working for you this way, then that sounds to me like a good way to go. <g>

~~Bonnie



>Bonnie,
>
>This seems to behave the way I want it to both in designtime and run time. The only thing I am wondering a little about is the refresh call in the set. Is that the standard way to do this?
>
>
>
>		#region LiquidColor
>		private Color liquidColor = Color.Red;
>		[Category("Appearance")]
>		[Description("The color of the liquid that is inside the thermometer.")]
>		[DefaultValue(typeof(Color),"Red")]
>		[RefreshProperties(RefreshProperties.Repaint)]
>		public Color LiqidColor
>		{
>			get
>			{
>				return this.liquidColor;
>			}
>			set
>			{
>				this.liquidColor = value;
>				this.Refresh();
>			}
>		}
>		#endregion LiquidColor
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform