Panel.OnVisualChildrenChanged(DependencyObject, DependencyObject) 方法

定义

当修改可见对象的 VisualCollection 时调用。

protected public:
 override void OnVisualChildrenChanged(System::Windows::DependencyObject ^ visualAdded, System::Windows::DependencyObject ^ visualRemoved);
protected internal override void OnVisualChildrenChanged (System.Windows.DependencyObject visualAdded, System.Windows.DependencyObject visualRemoved);
override this.OnVisualChildrenChanged : System.Windows.DependencyObject * System.Windows.DependencyObject -> unit
Protected Friend Overrides Sub OnVisualChildrenChanged (visualAdded As DependencyObject, visualRemoved As DependencyObject)

参数

visualAdded
DependencyObject

已添加到集合中的 Visual

visualRemoved
DependencyObject

从集合中移除的 Visual

注解

ZIndex 将子元素添加到集合或从集合中删除子元素时,会自动重新计算值。

适用于

另请参阅