The treeview is showed as follows:
-School (School Class)
-Teacher A (Teacher Class)
-Teacher B
-Class A (Class Class)
-Jim (Student Class)
-Tom
-Tim
-Class B
-Class C
i right click on the Root Note(School) ,it shows a contextmenu to refresh the Teachers
so I want to use TreeViewItem.Items.RemoveAll(Predicate ) to remove the Teachers on the treeview first
but how to use ItemCollection.RemoveAll(Predicate )
-School (School Class)
-Teacher A (Teacher Class)
-Teacher B
-Class A (Class Class)
-Jim (Student Class)
-Tom
-Tim
-Class B
-Class C
i right click on the Root Note(School) ,it shows a contextmenu to refresh the Teachers
so I want to use TreeViewItem.Items.RemoveAll(Predicate ) to remove the Teachers on the treeview first
but how to use ItemCollection.RemoveAll(Predicate )