I want to use ChartModifier.OnModifierMouseMove , I have declared as image “Cannot assign to OnModifierMouseMove because it is a method group”, then it gives an error. I have to how to use it
- DANG CHUYEN asked 3 years ago
- You must login to post comments
Thank. How should I call and add it to my chartSurface class
- DANG CHUYEN answered 3 years ago
- You must login to post comments
It’s a method, not an event, so you will need to create a class which inherits ChartModifierBase and override OnModifierMouseMove
e.g.
public class MyChartModifier : ChartModifierBase
{
public override void OnModifierMouseMove(ModifierMouseArgs e)
{
base.OnModifierMouseMove(e);
// TODO: Your logic here
}
}
Find out more here: SciChart WPF – The Custom ChartModifier API
- Andrew Burnett-Thompson answered 3 years ago
- You must login to post comments
Please login first to submit.