Hello Team,
we like to give the user the possibility to select and deselect a PointMark in a LineSeriesDefinition.
Simply in the event ItemClick we change the brush of the .Fill property. But surprisingly, if we set the original brush (= nothing in the example), the view don't change.
This is the relevant code:
I have made a little example project (*.Zip), but those files are not allowed to attach??
Do you have an explanation for this behaviour and a functioning idea?
Thank you
we like to give the user the possibility to select and deselect a PointMark in a LineSeriesDefinition.
Simply in the event ItemClick we change the brush of the .Fill property. But surprisingly, if we set the original brush (= nothing in the example), the view don't change.
This is the relevant code:
Private _manualPointMarkFill As Brush Private _manualSelectedPointMark As PointMark
Private Sub SetPointMarkSelectedState() _manualPointMarkFill = _manualSelectedPointMark.Fill _manualSelectedPointMark.Fill = New SolidColorBrush(Colors.Black) End Sub
Private Sub ClearPointMarkSelectedState() If _manualSelectedPointMark IsNot Nothing Then 'The Color of the PointMark do not reset to white, the PointMark remains black. _manualSelectedPointMark.Fill = _manualPointMarkFill
'That works, but is only correct if the PointMark was white before. '_manualSelectedPointMark.Fill = Brushes.White
_manualSelectedPointMark = Nothing End IfEnd SubI have made a little example project (*.Zip), but those files are not allowed to attach??
Do you have an explanation for this behaviour and a functioning idea?
Thank you