Detach() 공개 메소드

Detaches the associated ApplicationBarMenuItem from the ApplicationBar and from this instance.
public Detach ( ) : void
리턴 void
        private void DetachMenuItem(BindableApplicationBarMenuItem menuItem)
        {
            if (menuItem.GetBindingExpression(DataContextProperty) == null &&
                menuItem.GetValue(DataContextProperty) == this.DataContext)
            {
                menuItem.DataContext = null;
            }

            menuItem.Detach();
        }