/// <summary> /// Detaches this instance from its associated object. /// </summary> public void Detach() { if (_applicationBar == null) { throw new InvalidOperationException( "The BindableApplicationBarMenuItem is not attached to an IBindableApplicationBar."); } OriginalList.Remove(ApplicationBarItem); _applicationBar = null; _position = -1; }
public bool Remove(TNew item) { OriginalList.Remove(item.OriginalDictionary); return(NewList.Remove(item)); }