共用方式為


MenuItem.OnClicked Method

Definition

When overridden by an app dev, implements behavior when the menu item is clicked.

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

Applies to