Hello,
I have a scichart and bound to its VM class. Inside this VM there is a Highlights property.
On the MainWindow, I am placing two of this charts with their own VM instance.
The problem is that when the Annotations is bound, it is only drawn on the last chart as shown in the image.
If I manually code in xaml the annotations (no binding) then the annotations are drawn in both charts.
How can I make it work with the binding?
Thanks
- Miguel Hau asked 10 years ago
- You must login to post comments
Found my problem. I was sharing the same VM. For some reason this two charts cannot be bound to the same AnnotationCollection instance.
The problem was solved by creating their own instances. The annotations inside the AnnotationCollection also had to be unique.
- Miguel Hau answered 10 years ago
-
Hi Miguel, glad you found it! I might suggest taking a look at this FAQ on Architecture for Dynamic Annotations with MVVM. Best regards, Andrew
- You must login to post comments
Please login first to submit.