I am using a NumericIndicator within my IndicatorList inside a RadGauge/RadialGauge/RadialScale.
There are NumberPosition elements to hold the maximum number of digits possible. But since the NumberPositions may or may not have a value and I can only set the Left/Top position on the containing NumericIndicator, the numbers are not centered if some of the NumberPositions are blank.
For example, 59884 would be centered on the gauge, but 59 would not be (see attached screen captures).
Is there a way to center the collection of NumberPosition elements based on the current number of digits displayed?
Thank you.
Josh
There are NumberPosition elements to hold the maximum number of digits possible. But since the NumberPositions may or may not have a value and I can only set the Left/Top position on the containing NumericIndicator, the numbers are not centered if some of the NumberPositions are blank.
For example, 59884 would be centered on the gauge, but 59 would not be (see attached screen captures).
Is there a way to center the collection of NumberPosition elements based on the current number of digits displayed?
<
Gauges:NumericIndicator
Value
=
"{Binding Path=(viewmodels:TotalOrdersValue.Value)}"
TemplatePrefix
=
"FontFamily"
Format
=
"{}{0:F0}"
Left
=
"0.37"
Top
=
"0.7"
RelativeWidth
=
"0.6"
RelativeHeight
=
"0.24"
Background
=
"Transparent"
BorderThickness
=
"0"
FontSize
=
"16"
FontFamily
=
"Arial"
>
<
Gauges:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/>
<
Gauges:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/>
<
Gauges:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/>
<
Gauges:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/>
<
Gauges:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/>
</
Gauges:NumericIndicator
>
Thank you.
Josh