public void DoDrop(string[] fileNames) { List <string> imageFiles = PhotoUploadWizard.FindImageFiles(fileNames); if (imageFiles.Count != 0) { if (ServiceProvider.ViewManager.EndDialog(ServiceProvider.ViewManager.Dialog)) { // This is a bit hacky. Don't clear the selected album on drop // if a dialog (e.g. an existing upload wizard) is up. // This will leave it if the embedded browser or settings dialog is up, // but whatever. _photoUploadWizard.SetDefaultAlbum(null); } _photoUploadWizard.Show(imageFiles); } }