private void RemoveShortcuts() { var selectedShortcutFiles = ShortcutsBox .SelectedItems .Cast<ShortcutListBoxItem>() .Select(shortcut => shortcut.ShortcutInfo.FullName); Middleware.DeleteFiles(selectedShortcutFiles); ScanAndUpdate(); }