I'm trying to get a list of removable drives to a combobox, but I'm having a few issues. See code below. CBDrives is a combobox set up in my WPF code for the window that displays the drives.

1) If I don't use a List (just the combobox) and I use the commented out code 'CBDrives.Items.Add(d), the correct drives show up, but there is nothing displayed by default. Only if I drop down the list do the drives show up. Only drive name (F:\, G:\, etc). And, I can't get the volume name in there.

2) If I use a List and use 'CBDrives.ItemsSource = RemovableDrives;', the List shows "Removable Drives + Removable_Drive_Entry" as the entries. What is the proper syntax to display these in list form?


void List_Removable_Drives()
{
List<Removable_Drive_Entry> RemovableDrives = new List<Removable_Drive_Entry>();

foreach (DriveInfo d in DriveInfo.GetDrives())
{
if (d.IsReady == true && d.DriveType == DriveType.Removable &&
d.DriveFormat == "FAT32")
{
// CBDrives.Items.Add(d);
RemovableDrives.Add(new Removable_Drive_Entry()
{
Drive = d.Name + " ",
Volume = d.VolumeLabel
});
}
}
CBDrives.ItemsSource = RemovableDrives;
}

public class Removable_Drive_Entry
{
public string Drive { get; set; }
public string Volume { get; set; }
}