I've added a custom itemstyle for a RadCharts BarSeriesDefinition to enable conditional formatting via databinding.
i.e.
However, even though the interactivity settings are on, the non-selected bars no longer change colour when a bar is hovered over by the mouse.
Is there something else that needs adding to the style to support this?
Thanks
i.e.
<
Style
x:Key
=
"CustomStyle"
TargetType
=
"telerik:Bar"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:Bar"
>
<
Canvas
>
<
Rectangle
x:Name
=
"PART_DefiningGeometry"
Height
=
"{TemplateBinding ItemActualHeight}"
Width
=
"{TemplateBinding ItemActualWidth}"
RadiusX
=
"0"
RadiusY
=
"0"
StrokeThickness
=
"1"
Fill
=
"{Binding DataItem.BarColour}"
/>
<
Canvas.RenderTransform
>
<
ScaleTransform
x:Name
=
"PART_AnimationTransform"
ScaleY
=
"0"
/>
</
Canvas.RenderTransform
>
</
Canvas
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
<
telerik:BarSeriesDefinition
ShowItemToolTips
=
"True"
LegendDisplayMode
=
"SeriesLabel"
ItemStyle
=
"{StaticResource CustomStyle}"
SeriesItemLabelStyle
=
"{StaticResource CustomLabelStyle}"
>
However, even though the interactivity settings are on, the non-selected bars no longer change colour when a bar is hovered over by the mouse.
<
telerik:BarSeriesDefinition.InteractivitySettings
>
<
telerik:InteractivitySettings
HoverScope
=
"Item"
SelectionScope
=
"Item"
SelectionMode
=
"Single"
/>
</
telerik:BarSeriesDefinition.InteractivitySettings
>
Is there something else that needs adding to the style to support this?
Thanks