Skip to main content
A newer version of this page is available. .

Ornamental Elements

  • 2 minutes to read

Ornamental elements for digital gauges include background and effect layers, much similar to those seen in analog gauges (see the Ornamental Elements topic). These elements are used to decorate your digital gauges and apply certain style effects to them.

Background Layer

A Background Layer is a visual element that defines the background of the digital gauge.

When you add a new background layer to the digital gauge, it is painted behind all other gauge elements, because its BaseLeafPrimitive.ZOrder property is set to 1000, by default. If you want to bring this layer in front of other gauge elements (or paint it above other layers, if there are any), you need to set the ZOrder property to a lower value.

For example, the following picture illustrates a background layer that is overlapped by the symbols of the FourteenSegment view type.

DigitalGauge_BackgroundLayer

A background layer is represented by the DigitalBackgroundLayer class.

The table below lists the main properties affecting element behavior and appearance.

Characteristics Members
Appearance DigitalBackgroundLayer.ShapeType,BaseLeafPrimitive.Shader
Layout DigitalBackgroundLayer.BottomRight,DigitalBackgroundLayer.TopLeft,BaseLeafPrimitive.ZOrder

Effect Layer

An Effect Layer adds a style effect (for instance, a glare effect) to the digital gauge.

When a new effect layer is added to the gauge, it is painted foreground all other elements because its BaseLeafPrimitive.ZOrder property is set to -1000 by default.

To bring this layer behind other gauge elements, you need to set the ZOrder property to a higher value.

DigitalGauge_EffectLayer

An effect layer is represented by the DigitalEffectLayer class.

The table below lists the main properties affecting element behavior and appearance.

Characteristics Members
Appearance DigitalEffectLayer.ShapeType,DigitalEffectLayer.Shape
Layout DigitalEffectLayer.BottomRight,DigitalEffectLayer.TopLeft,BaseLeafPrimitive.ZOrder