I'm fresh new to WPF, and I've been trying to populate a DataGrid, but it shows no values...
As you can see: http://i.epvpimg.com/EJ0Bh.png
Code:
List<FileI> files = new List<FileI>();
foreach (string file in Directory.GetFiles("profileSettings"))
{
files.Add(new FilI( { fileName = file, fileSize = new FileInfo(file).Length }));
}
dgFilesToExtract.ItemsSource = files;
I checked the folder, there are 2 files, and I placed a BP before the ItemsSource property is set, and the list has items.
What am I doing wrong?
Thanks in advance