Hello Ncubed,
The new version of the gauge control allows positioning of any
FrameworkElement over the gauge using relative measurements. To do it you should put a desirable element (TextBlock, for example) to the
CustomItems property of the scale object:
There are 2 ways of the positioning using relative measurement:
- Using ScaleObject.RelativeX and ScaleObject.RelativeY attached properties. These 2 properties set X and Y coordinates of the object using relative measurement.
- Using ScaleObject.Value, ScaleObject.Location and ScaleObject.Offset attached properties. The ScalObject.Value property specify the value along the scale where put the object. The ScaleObject.Location and ScaleObject.Offset specify object location relative to the scale bar boundaries and offset from this location.
You can use Use Canvas.ZIndex attached property to position object over or under some scale elements. The scale objects have following default ZIndex:
1. Range – 100
2. Tick mark – 200
3. Label – 300
4. Indicator – 400
Best wishes,
Andrey Murzov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>