Visual.OnVisualChildrenChanged(DependencyObject, DependencyObject) 方法

定义

修改可视对象的 VisualCollection 时调用。Called when the VisualCollection of the visual object is modified.

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

参数

visualAdded
DependencyObject

已添加到集合中的 VisualThe Visual that was added to the collection

visualRemoved
DependencyObject

已从集合中移除的 VisualThe Visual that was removed from the collection

适用于