Is it possible to set the Positions property using a style?
Here's mine:
<Style x:Key="myStyle" TargetType="telerik:NumericIndicator" BasedOn="{StaticResource {x:Type telerik:NumericIndicator}}"> <Setter Property="telerik:ScaleObject.Location" Value="Inside"/> <Setter Property="telerik:ScaleObject.RelativeX" Value="0.225"/> <Setter Property="telerik:ScaleObject.RelativeY" Value="0.4"/> <Setter Property="telerik:ScaleObject.RelativeHeight" Value="0.4*"/> <Setter Property="telerik:ScaleObject.RelativeWidth" Value="1.1*"/> <Setter Property="Foreground" Value="#FFCED2E4"/> <Setter Property="Format" Value="{}{0:F1}"/> <Setter Property="Positions"> <Setter.Value> <telerik:NumberPositionCollection> <telerik:FontNumberPosition CornerRadius="15,0,0,15" /> <telerik:FontNumberPosition/> <telerik:FontNumberPosition/> <telerik:FontNumberPosition/> <telerik:FontNumberPosition/> <telerik:FontNumberPosition/> <telerik:FontNumberPosition CornerRadius="0,15,15,0"/> </telerik:NumberPositionCollection> </Setter.Value> </Setter></Style>
Doesn't seem to work. The NumericIndicator is aligned ok (I can see the rectangle positioned correctly in VS designer) but there are no visible NumberPosition objects.
Properties window shows that the Positions property value is an empty collection, and the little rectangle (after the "..." button) is gray. I.e., not indicating that the Positions property is bound to anything.
