Search results for query: *

  1. B

    Removing treeviewitem using MVVM pattern in WPF application

    I'm afraid that my callstack is empty after setting a breakpoint at the beginning of OnFileDeleted (case when I try to delete a folder containing other sub-folders and deletion isn't possible to conduct). There is no problem when I delete a folder containing .txt. (with no other folders). To...
  2. B

    Removing treeviewitem using MVVM pattern in WPF application

    I came up with something like that: private void OnFileDeleted(FileSystemEventArgs e) { if (Items.Any(x => x.Caption == e.Name)) { var toDelete = Items.Single(x => x.Caption == e.Name); Items.Remove(toDelete); } } Deletion works, but not quite. When I delete...
  3. B

    Removing treeviewitem using MVVM pattern in WPF application

    Thanks for the answer! Could You be more specific? I'm new to wpf and mvvm and I don't know how to fix it myself
  4. B

    Removing treeviewitem using MVVM pattern in WPF application

    I'm making a file explorer app using MVVM pattern in C# WPF. Right now I want to implement watcher events that are responsible for adding, removing and renaming items from treeview. I already have adding, and partially renaming (I think that in this case I have to combine deleting and adding)...
Back
Top Bottom