Hi Telerik Team,
the telerik example Programatically selecting visual items with the new interactivity api in radchart
helped me a lot, because i needed exactly this behaviour, but i have a problem to style the points.
I tried this (with different colors to see what is applied)
and this
and this one from the help file RadControls Wpf
but none of them worked really out.
The first example works until the selected points are deselected. After deselection the style is the default
style and not my applied one. (My next attempt is to set the style again, after the points are deselected.)
Do you have any idea?
kind regards
Hubert
the telerik example Programatically selecting visual items with the new interactivity api in radchart
helped me a lot, because i needed exactly this behaviour, but i have a problem to style the points.
I tried this (with different colors to see what is applied)
telerik:SeriesAppearanceSettings x:Key="BenchmarkAppearance"
Stroke="Wheat"
StrokeThickness="2"
Fill="DarkBlue">
<
telerik:SeriesAppearanceSettings.PointMark
>
<
telerik:PointMarkAppearanceSettings
Shape
=
"Circle"
Stroke
=
"White"
StrokeThickness
=
"1"
Fill
=
"Gray"
/>
</
telerik:SeriesAppearanceSettings.PointMark
>
</
telerik:SeriesAppearanceSettings
>
and this
<
Style
x:Key
=
"BenchmarkPointStyle"
TargetType
=
"telerik:PointMark"
>
<
Setter
Property
=
"Shape"
Value
=
"Circle"
/>
<
Setter
Property
=
"Stroke"
Value
=
"White"
/>
<
Setter
Property
=
"StrokeThickness"
Value
=
"1"
/>
<
Setter
Property
=
"Fill"
Value
=
"Yellow"
/>
</
Style
>
and this one from the help file RadControls Wpf
LineSeriesDefinition l = new LineSeriesDefinition();
l.Appearance.PointMark.Stroke = new SolidColorBrush( Colors.Blue );
l.Appearance.PointMark.StrokeThickness = 1;
l.Appearance.PointMark.Fill = new SolidColorBrush( Colors.Transparent );
l.Appearance.PointMark.Shape = MarkerShape.Diamond;
this.radChart.DefaultSeriesDefinition = l;
but none of them worked really out.
The first example works until the selected points are deselected. After deselection the style is the default
style and not my applied one. (My next attempt is to set the style again, after the points are deselected.)
Do you have any idea?
kind regards
Hubert