Summary
Provides class handling for the MouseLeftButtonDown event that
occurs when the left mouse button is pressed while the mouse pointer
is over this control.
- Namespace
- Avalonia
.Controls .Primitives - Containing Type
- CalendarDayButton
Syntax
protected override void OnPointerPressed(PointerPressedEventArgs e)
Remarks
This method marks the MouseLeftButtonDown event as handled by
setting the MouseButtonEventArgs.Handled property of the event data
to true when the button is enabled and its ClickMode is not set to
Hover. Since this method marks the MouseLeftButtonDown event as
handled in some situations, you should use the Click event instead
to detect a button click.
Parameters
Name | Type | Description |
---|---|---|
e | Pointer |
The event data. |
Return Value
Type | Description |
---|---|
void |