Back to Devexpress

Custom Labels

wpf-9968-controls-and-libraries-gauge-controls-visual-elements-linear-gauge-custom-labels.md

latest1.8 KB
Original Source

Custom Labels

  • Sep 14, 2020

Custom Labels allow you to display a custom text and place it in any position in the Linear gauge.

Custom Labels are represented by an instance of the ScaleCustomLabel class, which should be added to the ScaleCustomLabelCollection returned by the Scale.CustomLabels property.

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

CharacteristicsMembers
DataScaleCustomElement.Content
VisibilityScaleCustomElement.Visible
PresentationScaleCustomElement.ContentTemplate
PositionScaleCustomLabel.Value, ScaleCustomLabel.Offset
LayoutWidth, Height, Margin, Padding
Generation from a templateScale.CustomLabelsSource, Scale.CustomLabelTemplate