I can't seem to get rid of the extra space around RadVerticalLinearGauge. Is this a bug or am I missing a property?
Try this code:
<
Grid
>
<
Border B
ackground
=
"#FF1B1B1F" Co
rnerRadius
=
"0"
>
<
telerik:RadVerticalLinearGauge
OuterBorderThickness
=
"0"
OuterBorderBrush
=
"Green"
Background
=
"Red"
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
>
</
Grid
>
There is a black extra space around the red gauge object. Margin is 0 so that's not the culprit. I added OuterBorderThickness and OuterBorderBrush for demonstration purpose. If I set OuterBorderThickness to 10 the green border is drawn over the black area. Not sure if they are related but something to start with.
Shouldn't the red area fill the entire border object with the above property values? Especially if you remove both OuterBorderThickness and OuterBorderBrush property values from the code.