共用方式為


Element.OnParentSet Method

Definition

Invoked whenever the Parent of an element is set. Implement this method in order to add behavior when the element is added to a parent.

protected virtual void OnParentSet ();
abstract member OnParentSet : unit -> unit
override this.OnParentSet : unit -> unit

Remarks

Implementors must call the base method.

Applies to