Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

No PropertyChanged event fired on XYCursor when its Plot changes due to a drag in NearestPoint SnapMode

Solved!
Go to solution

I have a waveform graph with two plots and a cursor, having SnapMode = NearestPoint.

When removing the plot the cursor currently points to, I want to associate the cursor with another plot.

 

For this sake, I subscribed to the cursor's PropertyChanged event. When the cursor's plot changes, I expect this event to be fired. In the handler, I subscribe to the new plot's Disposed event. In the disposed handler, I point the cursor to another plot.

 

The problem in this approach is that the PropertyChanged event is not fired when the cursor is dragged from one plot to another plot.

 

While there are several ways to work around this, this behavior is unexpected. I expect a PropertyChanged to be fired whenever the Plot property of the cursor changes.

 

Reproduced with version 2010 SP1 (9.1.0.204)

Christian
0 Kudos
Message 1 of 4
(6,174 Views)

Hi Chrisitan,

 

I was also able to reproduce it with MS 2012. I will forward it to R&D to get their opinion on this, but probably first after Christmas. 

 

I think from your message you have couple workaround. I looked for an event that would be fired on plot change without having to check the control properties in the callback but did not find anouther one. In the other hand, and as you said it, there is couple ways to work this around and still be "event oriented".

 

Have nice holidays.

______________
Florian Abry
Inside Sales Engineer, NI Germany
Message 2 of 4
(6,147 Views)
Solution
Accepted by topic author Marrocco

Seems they have made some changes in MS 2013, see issue 384987. Thank you for investigating.

I'll look into it when upgrading.

Christian
0 Kudos
Message 3 of 4
(6,054 Views)

Hi Chrisitan,

 

You have been further than me checking. After your previous post I escalated the problem which led to a CAR. As I was not monitoring this CAR I overseen that it was fixed in 2013. Ißm glad you could observe it works now 🙂

 

Best regards

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 4 of 4
(6,043 Views)