Pre loader

How to use the "Cursor" property of annotations with MVVM in WPF

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hello everyone,

I’m trying to display a tooltip when I hover over an annotation in our WPF project using MVVM.

I attempted to override the MouseMove event on the SciChart surface to identify which annotation the mouse was over by cycling through each annotation. However, it didn’t seem like a very good way to proceed to me and I didn’t try to display the desired information at that point.

While reviewing the documentation, I noticed that annotations have a “Cursor” property. Is there a way to bind that property from the viewmodel? That would make my job so much easier.

If anyone has suggestions on how to proceed, they would be greatly appreciated.

Thanks,
Andrea

Version
8
  • You must to post comments
1
0

Hi Andrea,

Thanks for your inquiry.
Please accept my apologies for the late response.

Since SciChart Annotations are WPF UIElements, you could use WPF Tooltips with them.
Here you can find more details:
ToolTip Overview – WPF .NET Framework _ Microsoft Learn

Hope this helps.

Kind regards,
Lex,
SciChart Technical Support Engineer

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.