05-11-2021 04:53 AM
I have an AnalogWaveform object , where samples are appended and Precision time are being set.With AnalogWaveform object I'm able to plot the graph through data binding in WPF.
But when I set the AnalogWaveform to 0 i.e, new AnalogWaveform<double>(0);(Which I believe to clear the AnalogWaveform object) then graph is not plotting.
Any Idea on this issue?
05-13-2021 06:39 AM
Hi,
Can you please concretize or attache some screenshots? I didn't really understand what is the problem.
Thx.
05-13-2021 09:49 PM
I went ahead and created a simple mockup, binding a graph to a waveform object, using Append to modify it, and assigning a new waveform to clear it (attached).
Based on your initial description, I would guess that your code is missing the change notification for the property (line 17 in my example)? Using Append will modify the waveform object, and it will raise a change notification to the graph. For Clear, in order for the WPF binding system to see the change, it needs an INotifyPropertyChanged implementation (or a dependency property) in order to see the new value.