Share via


PointerEventArgs.Button Property

Definition

Gets the mouse button that triggered this pointer event.

public:
 property Microsoft::Maui::Controls::ButtonsMask Button { Microsoft::Maui::Controls::ButtonsMask get(); };
public Microsoft.Maui.Controls.ButtonsMask Button { get; }
member this.Button : Microsoft.Maui.Controls.ButtonsMask
Public ReadOnly Property Button As ButtonsMask

Property Value

Remarks

This property indicates which specific mouse button was pressed or released. For pointer events that don't involve button presses (like hover), this will be the primary button.

Applies to