(WPF, C#) Referencing List from window1 in a DataGrid in window2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

(WPF, C#) Referencing List from window1 in a DataGrid in window2

I have a perfectly functional List that gathers objects from a wpf window (Name textbox, Gender ComboBox, etc) but I need a second window that shows the objects from that list in a DataGrid.

11th Apr 2019, 11:34 PM
Kazu_orz
Kazu_orz - avatar
1 Answer
+ 2
Make a person object. And make a person propertie in window2. Or make several properties for name, gender etc.. Fill the propertie(s) with the data you want to show, just before you show window2 Please separate the data from the user interface.
12th Apr 2019, 8:12 PM
sneeze
sneeze - avatar