Version

GetClickedElements<T> Method (OpenedEventArgs)

Returns the visible and invisible elements of the specified type at the coordinates of the mouse when the menu was opened.
Syntax
'Declaration
 
Public Function GetClickedElements(Of T As UIElement)() As List(Of T)
public List<T> GetClickedElements<T>()
where T: UIElement

Type Parameters

T
The type of elements

Return Value

The list of visible and invisible elements of the specified type at the coordinates of the mouse when the menu was opened.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also