How to change font color for a Label

It is possible to change the Label font color with the help of Fill property, but since this property appears to be rather complex, it makes impossible changing it through parameters in a simple way.

As a workaround we suggest adding a user property, which should be handled on a widget producer page. For detailed information please check the sample under the link below.

As you can notice, the Fill color is specified through
WidgetHolder1.Parameters["Label3", "FillColor"] = "Red" parameter. This parameter is then handled on the gauges.aspx page in
Page_PreInit event where the label fill color is set to 'true'. Please note, that parameters set for WidgetHolder are gathered into Get query, and then sent to WidgetProducer page in the form of <element_name>.<property_name>

http://perpetuumsoft.com/Support/samples/Gauges.zip

Add Feedback