Version

CreateItemAutomationPeer Method (XamMenuAutomationPeer)

When overridden in a derived class, creates a new instance of the System.Windows.Automation.Peers.ItemAutomationPeer for a data item in the System.Windows.Controls.ItemsControl.Items collection of this System.Windows.Controls.ItemsControl.
Syntax
'Declaration
 
Protected Overrides Function CreateItemAutomationPeer( _
   ByVal item As Object _
) As ItemAutomationPeer
protected override ItemAutomationPeer CreateItemAutomationPeer( 
   object item
)

Parameters

item
The data item that is associated with this System.Windows.Automation.Peers.ItemAutomationPeer.

Return Value

The new System.Windows.Automation.Peers.ItemAutomationPeer created.
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