private void Content_Removed(int index, object value) { if (value is Table) if (this.TableCollection.Contains((Table)value)) this.TableCollection.Remove(value as Table); }