While I am updating my dataseries, I change the values and I want to update my LineAnnotation (sloped) to use the new Y coordinates on the dataseries. It seems to hold the old value, not the new value.
The Y value before might be 0.78. I change my data and the new Y value should show 0.05, but instead, when I call sliceModifier.SeriesData.SeriesInfo.Where(x => x.SeriesName == “Series Name”).ToList().YValue, it shows 0.78.
I have tried the following:
It fires and I get to my code behind method and it shows the old value instead of the new
MVVM Light Messenger (event firing from VM):
I change the DataSeries in the VM, then send a message (fire an event) and it gets to my code behind method to update the Y value. It still shows the old value.
I have tried LineAnnotationName.Refresh() and I have tried to access the appropriate Y Values.
What can I do? How do I access these new values?