共用方式為


Element.SetMenu(BindableObject, Menu) Method

Definition

Sets the menu for bindable.

public static void SetMenu (Xamarin.Forms.BindableObject bindable, Xamarin.Forms.Menu menu);
static member SetMenu : Xamarin.Forms.BindableObject * Xamarin.Forms.Menu -> unit

Parameters

bindable
BindableObject

The BindableObject whose menu to set.

menu
Menu

The new menu.

Applies to