private void ItemCollection_Removed(int index, object value) { ODFItem opt = value as ODFItem; if (opt !=null) Node.RemoveChild(opt.Node); }