I\'m writing a custom ItemsControl (a tabbed document container), where each item (tab) can remove itself from the UI when the user closes it. However, I can\'t
Design practice dictates that you should really know what your ItemsSource is and be able to remove it from there directly. The binding then automatically updates the view of course.
However, if you are absolutely intent on some sort of generic functionality for removal, casting your ItemsSource to ICollection or ICollection and then calling Remove sounds like a better/more reliable way to go than using the dynamic features of .NET.