Updating GUI Component from a different class C# WPF
Posted
by
Boardy
on Stack Overflow
See other posts from Stack Overflow
or by Boardy
Published on 2011-01-06T21:39:26Z
Indexed on
2011/01/06
22:54 UTC
Read the original article
Hit count: 159
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.
© Stack Overflow or respective owner