The indicator paint order it controlled through the PaintOrder property. It allows you to choose from three options as shown in the following table:
PaintOrder | Description |
---|---|
BeforeScale | The indicator is painted before the scale it is attached to |
AfterScale | The indicator is painted after the scale it is attached to |
PostPaint | The indicator is painted in during the gauge post paint |
By default range indicators and marker indicators use BeforeScale and needle indicators use PostPaint. This allows you to add child widgets without hiding the needle. The following code changes the paint order to AfterScale:
C# |
Copy Code
|
---|---|
someIndicator.PaintOrder = IndicatorPaintOrder.AfterScale; |