Edit

Share via


ViewBase.GetAutomationPeer(ListView) Method

Definition

Is called when a ListView control creates a ListViewAutomationPeer for its View.

protected public:
 virtual System::Windows::Automation::Peers::IViewAutomationPeer ^ GetAutomationPeer(System::Windows::Controls::ListView ^ parent);
protected internal virtual System.Windows.Automation.Peers.IViewAutomationPeer GetAutomationPeer (System.Windows.Controls.ListView parent);
abstract member GetAutomationPeer : System.Windows.Controls.ListView -> System.Windows.Automation.Peers.IViewAutomationPeer
override this.GetAutomationPeer : System.Windows.Controls.ListView -> System.Windows.Automation.Peers.IViewAutomationPeer
Protected Friend Overridable Function GetAutomationPeer (parent As ListView) As IViewAutomationPeer

Parameters

parent
ListView

The ListView control to use to create the ListViewAutomationPeer.

Returns

The IViewAutomationPeer interface that implements the ListViewAutomationPeer for a custom View.

Remarks

The ListViewAutomationPeer first uses the properties and AutomationPattern objects that are implemented by the specified view, before using the default properties and patterns that are defined for a ListView control.

Applies to