SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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
    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
    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
    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.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+