Updating GUI Component from a different class C# WPF
- by Boardy
Hi all, I am trying to update a GUI component (DataGrid) in one class from a different class. I am using C# and WPF Forms.
When I used the standard WF forms I could pass a reference to the GUI component as a parameter to the function that needed to do the work with the DataGrid. However, I do not know how I can do this in WPF.
I have Class1 which has the GUI component and I need Class3 to run the function inside Class2 which will automatically update the GUI display of the Datagrid found in Class1.
Any help with this would be much appreciated.