Back to Devexpress

Layers

wpf-10671-controls-and-libraries-gauge-controls-visual-elements-digital-gauge-layers.md

latest2.0 KB
Original Source

Layers

  • Apr 01, 2021

Layer is a visual element that contains different objects (e.g. images) to define a visual presentation of a DigitalGaugeControl and its elements.

When a new layer is added to the Digital Gauge control, it is painted behind all other gauge elements. This is because the LayerOptions.ZIndex property is set to -100 by default. If you want to bring this layer to the front, set the ZIndex property to a greater value.

The images below show two layers that were added to the gauges of the SevenSegmentsView and MatrixView8x14 types. The first layer defines a gauge background, while the second layer is painted in the foreground.

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

CharacteristicsMembers
AvailabilityDigitalGaugeControl.Layers
VisibilityLayerBase.Visible
SizeSymbolViewBase.Width,SymbolViewBase.Height
AppearanceDigitalGaugeControl.Model,DigitalGaugeLayer.Presentation,Foreground,Background
BehaviourGaugeLayerBase.Options