Prevent moving a marker
Posted: Thu Apr 29, 2021 5:25 pm
Hi,
Under certain circumstances I would like to prevent the position change of markers in the PositionChanged event handler.
So, in the handler i have something like this
however the CancelRendering do not revert the marker position change.
How can I achieve this?
Thanks.
Under certain circumstances I would like to prevent the position change of markers in the PositionChanged event handler.
So, in the handler i have something like this
Code: Select all
private void Marker_PositionChanged(object sender, PositionChangedSeriesEventMarkerEventArgs e)
{
// ....... //
if (true)
{
e.CancelRendering = true;
return;
}
// ....... //
}
How can I achieve this?
Thanks.