+ 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.
1 ответ
+ 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.