PointerEventArgs.Button Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.