TreeView.

GetContainerFromEventSource(IInteractive) Method

Summary

Tries to get the container that was the source of an event.
Namespace
Avalonia.Controls
Containing Type
TreeView

Syntax

protected TreeViewItem GetContainerFromEventSource(IInteractive eventSource)

Parameters

Name Type Description
eventSource IInteractive The control that raised the event.

Return Value

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