Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default value for property
Message
 
To
17/09/2005 16:06:56
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01050633
Message ID:
01050661
Views:
10
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
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform