No it would just affect your SelectedItems
collection (by emptying it of course). Clear
just removes items from a collection not another one :
ItemsSource
references anObservableCollection
containing object references.SelectedItems
references anotherObservableCollection
containing some objects references also contained into yourItemsSources
collection;
Calling Clear
method on your SelectedItems
collection will only removes object references contained in SelectedItems
, not objects (themself) or object references from another collection (here ItemsSource
).