ComponentOne Gauges for WPF and Silverlight
About C1Gauges / Using C1LinearGauge / C1LinearGauge Decorators / C1LinearGauge Decorators Location
In This Topic
    C1LinearGauge Decorators Location
    In This Topic

    Decorators are positioned with the C1LinearGauge control compared to the C1RadialGauge control. Recall that the C1RadialGauge control has a C1RadialGauge.Radius property that determines how far from the center of the gauge that decorators are displayed. The Radius property ranges from zero (center of the gauge) to one (outer edge of the gauge). Individual decorators are offset from the Radius by an amount specified by the Location property.

    The C1LinearGauge has a C1LinearGauge.YAxisLocation property that is analogous to C1RadialGauge.Radius. This property ranges from zero (top of the gauge) to one (bottom of the gauge). Individual decorators are offset from the YAxisLocation by an amount specified by their C1GaugeDecorator.Location property.

    The default value for the YAxisLocation property is zero. The default value for the Location of the C1GaugeMark decorators is one (causing these elements to appear at the bottom of the gauge by default). The default value for the Location property of the C1GaugeRange decorator is zero (causing it to appear at the top of the gauge by default).