Skip to main content

GetContainerFromEventSource Method

Tries to get the container that was the source of an event.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected Control? GetContainerFromEventSource(
Object? eventSource
)

Parameters

  Object
The control that raised the event.

Return Value

Control
The container or null if the event did not originate in a container.

See Also

Reference

SelectingItemsControl Class
Avalonia.Controls.Primitives Namespace