I have several LineSeries on a RadCartesianPlot. When the user selects one of the series, I want to ensure that series is drawn on top of the others, so I would like to set its ZIndex property in a Style Trigger like this:
However, I cannot set the ZIndex property via a Setter because it is not a DependencyProperty. This post (https://www.telerik.com/forums/setting-zindex-when-using-chartseriesprovider) has a similar issue, and the recommended solution is to create an attached property, but this seems like something that should "just work". In fact, some other posts show setting the ZIndex in a Setter as if it should work (https://www.telerik.com/forums/seriesprovider-and-series-display-order). Can the ZIndex property be changed to a DependencyProperty so we don't have to implement a workaround to use it in a Trigger?
<
Style
TargetType
=
"telerik:LineSeries"
>
<
Style.Triggers
>
<
Trigger
Property
=
"IsSelected"
Value
=
"True"
>
<
Setter
Property
=
"ZIndex"
Value
=
"999"
/>
</
Trigger
>
</
Style.Triggers
>
</
Style
>
However, I cannot set the ZIndex property via a Setter because it is not a DependencyProperty. This post (https://www.telerik.com/forums/setting-zindex-when-using-chartseriesprovider) has a similar issue, and the recommended solution is to create an attached property, but this seems like something that should "just work". In fact, some other posts show setting the ZIndex in a Setter as if it should work (https://www.telerik.com/forums/seriesprovider-and-series-display-order). Can the ZIndex property be changed to a DependencyProperty so we don't have to implement a workaround to use it in a Trigger?