Hello,
Such a problem with this binding - I have been sitting for a week and I cannot understand what I am doing wrong and how it should be done correctly.
Given :
There is an interface, it has 3 graphics.
When you click on one of the menu items:
It should be :
- During all the work, the GUI is not blocked and the user can stop the test at any time.
- Change the captions on the graphs.
- The program sends data to a remote device and receives statuses.
- When the program receives the correct statuses, it should show the found points on the graphs.
- After all the necessary data has been sent and all the statuses are received and displayed to the user, the program calculates the parameters for each of the points received. Thereafter:
- The inscriptions on the graphs change, the graphs are cleared and the calculated parameters (points) appear on these graphs.
What happens :
- All changes are visible after the last item in "Must be".
How I try to do this:
- In the code, created objects (3) within which there is a collection of points ObservableCollection
- These three objects are tied to charts via DataContext
- In XAML I put SfChart (Syncfusion) charts, I created SplineSeries in them and their ItemSource attached to the collection of the desired object.
- In the code, after clicking on the test run, the for loop begins within which data is sent, statuses are obtained, points are needed for this stage, and then these points are displayed on the graph (this does not happen).
- As I wrote above, after all this cotovasia, the graphics should change the names and show the calculated parameters.
What am I doing wrong? I do not ask to write code for me, I ask you to explain how to correctly write all these interface changes.
Unfortunately I can not put code samples here (down).
Many thanks to everyone who tries to help!
If the question is incorrectly set - remove.
Sleep). - VladDParseBigFileexample. - VladD