Pre loader

Selectable but not movable annotations

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

I have two questions.

1.
I want text annotation witch is selectable but user can not move it. All User can do is delete.
Are there any good idea?

2.
How to catch the mouse over event of the AnnotationViewModel to be binded?

Thank you.

Version
5.4
  • Andrew Burnett-Thompson
    Hi Yukata, it’s actually very hard to do this with the current API, but easy with a small code change. I will investigate and see what we can do.
  • Andrew Burnett-Thompson
    First question is answered. Second question is a bit more work. I have spent half a day adding the ResizeDirections.None property for you. Would you consider to hire us for feature sponsorship for events in Viewmodels? We would like to hear from you about your requirements and how we can best adjust the API to suit your needs. Best regards, Andrew
  • You must to post comments
0
0

Hi Yukata,

In order to implement this I’ve had to add a new feature to AnnotationBase. We already have AnnotationBase.ResizeDirections and AnnotationBase.DragDirections property, but this accepted values of X, Y or XY. I have added a new value: None.

Tomorrow, get the nightly build for v5.4.1 and try this:

<s:LineAnnotation IsEditable="True" DragDirections="None" ResizeDirections="None"/> 

For the second question, routing mouse events from annotations to AnnotationViewModels, also very difficult with the current API. I will see what can be done about this.

Best regards,
Andrew

  • You must to post comments
0
0

Hi Andrew.

Thank you for you answer.

Answer1
Thank you. I’ll try v5.4.1.

Answer2
okay, I’ll consider another way.

Best regards.

  • Andrew Burnett-Thompson
    Just an FYI, you will need v5.4.1.12188 or later. This has not been published yet due to a failing test on our nightly build. It will be soon! Best regards, Andrew
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies