Skip to main content

GetContainerFromEventSource Method

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

Definition

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

protected TreeViewItem? GetContainerFromEventSource(
Object eventSource
)

Parameters

  Object
The control that raised the event.

Return Value

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

See Also

Reference

TreeView Class
Avalonia.Controls Namespace