Hello,
I need to be able to place different custom pointmarks on the datapoints within the same series. Essentially I am required to mark an "out of limit" datapoint with a different custom pointmark than the other "within limit" datapoints.
Is this possible?
I have created custom pointmarks like this in the XAML:
And attached them like this in code behind:
series.Definition.PointMarkItemStyle = this.PointStyleLTASS;
This of course adds them as my default for all of the datapoints in the series collection. Is it possible to set the pointmark definition on an individual basis, preferably programmatically?
Thanks in advance for your help!
I need to be able to place different custom pointmarks on the datapoints within the same series. Essentially I am required to mark an "out of limit" datapoint with a different custom pointmark than the other "within limit" datapoints.
Is this possible?
I have created custom pointmarks like this in the XAML:
<Style x:Name="PointStyleLTASS" TargetType="chart:PointMark"> |
<Setter Property="Size" Value="8" /> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="chart:PointMark"> |
<Canvas> |
<Path x:Name="PART_PointMarkPath" |
Style="{TemplateBinding ShapeStyle}" |
Width="{TemplateBinding Size}" |
Height="{TemplateBinding Size}" |
Stretch="Fill" |
Data="F1 M 10,0 L 0,0 0,5 10,5 10,10 0,10"> |
</Path> |
</Canvas> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
And attached them like this in code behind:
series.Definition.PointMarkItemStyle = this.PointStyleLTASS;
This of course adds them as my default for all of the datapoints in the series collection. Is it possible to set the pointmark definition on an individual basis, preferably programmatically?
Thanks in advance for your help!