ContextMenu.OnVisualParentChanged(DependencyObject) 方法

定义

在上下文菜单的可视父级更改时调用。Called when a context menu's visual parent changes.

protected public:
 override void OnVisualParentChanged(System::Windows::DependencyObject ^ oldParent);
protected internal override void OnVisualParentChanged (System.Windows.DependencyObject oldParent);
override this.OnVisualParentChanged : System.Windows.DependencyObject -> unit
Protected Friend Overrides Sub OnVisualParentChanged (oldParent As DependencyObject)

参数

oldParent
DependencyObject

上下文菜单以前附加到的对象。The object that the context menu was previously attached to.

适用于