Is is possible to create bar scale as in the attached image?
Currently I have done it this way:
<
Border
Background
=
"#FF1B1B1F"
CornerRadius
=
"24"
>
<
telerik:RadVerticalLinearGauge
telerik:StyleManager.Theme
=
"Green"
>
<
telerik:VerticalLinearScale
MajorTickBackground
=
"DeepSkyBlue"
MiddleTickBackground
=
"DeepSkyBlue"
MinorTickBackground
=
"DeepSkyBlue"
MajorTickOffset
=
"-10"
MiddleTickOffset
=
"-10"
MinorTickOffset
=
"-10"
Min
=
"0"
Max
=
"100"
LabelLocation
=
"Inside"
MajorTickLocation
=
"Inside"
MinorTickLocation
=
"Inside"
MiddleTickLocation
=
"Inside"
MiddleTicks
=
"2"
MinorTicks
=
"1"
LabelFormat
=
"{}{0:F0} %"
FontSize
=
"20"
Foreground
=
"#FF9EABAA"
Fill
=
"{x:Null}"
>
<
telerik:VerticalLinearScale.Indicators
>
<
telerik:BarIndicator
BorderBrush
=
"{x:Null}"
Value
=
"100"
Background
=
"#FF323232"
/>
<
telerik:BarIndicator
BorderBrush
=
"{x:Null}"
Value
=
"70"
Background
=
"DeepSkyBlue"
/>
</
telerik:VerticalLinearScale.Indicators
>
</
telerik:VerticalLinearScale
>
</
telerik:RadVerticalLinearGauge
>
</
Border
>
I cannot change the width of either the VerticalLinearScale or the BarIndicator objects. So to accomplish what I want, I hid the scale object and added two indicators. The first is the "base color" and the second the actual value indicator. In the end it's just rendering objects, but is there a better way to do this? Not the biggest fan of these "bubble gum solutions".
Also, is there a way to align the whole thing center? So that the bar scale and the tick labels together are always in the center during resizing. I would prefer not to use Padding. Currently there's wasted empty space on the left which makes the whole thing larger than it should be.
And is there a way to round the bar scale itself? Currently I'm rounding the border object, but when the whole thing is resized small enough, the bar scale's sharp corners start to render outside the border's rounder corners.