共用方式為


MenuItem.GetAccelerator(BindableObject) 方法

定義

警告

Use MenuFlyoutItem.KeyboardAcceleratorsProperty instead.

取得指定可繫結物件的加速器。

public:
 static Microsoft::Maui::Controls::Accelerator ^ GetAccelerator(Microsoft::Maui::Controls::BindableObject ^ bindable);
[System.Obsolete("Use MenuFlyoutItem.KeyboardAcceleratorsProperty instead.")]
public static Microsoft.Maui.Controls.Accelerator GetAccelerator (Microsoft.Maui.Controls.BindableObject bindable);
[<System.Obsolete("Use MenuFlyoutItem.KeyboardAcceleratorsProperty instead.")>]
static member GetAccelerator : Microsoft.Maui.Controls.BindableObject -> Microsoft.Maui.Controls.Accelerator
Public Shared Function GetAccelerator (bindable As BindableObject) As Accelerator

參數

bindable
BindableObject

要擷取快速鍵的可繫結物件。

傳回

屬性

適用於