How to eradicate duplicate items while adding in Existing WPF ListView
See the question and my original answer on StackOverflowYou could use the ItemCollection.IndexOf Method like this:
if (lvw1.Items.IndexOf(keyitem) < 0)
{
// add the object
}
Note this will implicitely use the keyitem object's Equals method, whatever that does. If it's not ok, then you'll have to enumerate the whole collection (using Linq methods for example) for something that suits your needs.