Visual.OnVisualChildrenChanged(DependencyObject, DependencyObject) Visual.OnVisualChildrenChanged(DependencyObject, DependencyObject) Visual.OnVisualChildrenChanged(DependencyObject, DependencyObject) Visual.OnVisualChildrenChanged(DependencyObject, DependencyObject) Method

定義

當視覺物件的 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 DependencyObject DependencyObject DependencyObject

已加入至集合的 VisualThe Visual that was added to the collection

visualRemoved
DependencyObject DependencyObject DependencyObject DependencyObject

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

適用於