共用方式為


Window.OnVisualChildrenChanged(DependencyObject, DependencyObject) 方法

定義

修改這個 Window 物件的 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

適用於