I have a combobox (ItemsSource="{Binding Path=AvailableDrives}").
The AvailableDrives property is defined like this:
public List<DriveInfo> AvailableDrives
{
get
{
return DriveInfo.GetDrives().Where(x => x.DriveType == DriveType.Removable).ToList();
}
}
It works OK, but i would like that if i plug in/out a USB device that the comboBox gets repopulated without having to close and reopen the window.
How can i achieve this?
thanx#