共用方式為


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 當子專案加入集合或從集合中移除時,會自動重新計算值。

適用於

另請參閱