ViewBase.GetAutomationPeer(ListView) 方法

定义

ListView 控件为其 ListViewAutomationPeer 创建 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

参数

parent
ListView

用于创建 ListViewListViewAutomationPeer 控件。

返回

为自定义 IViewAutomationPeer 实现 ListViewAutomationPeerView 接口。

注解

ListViewAutomationPeer第一个 使用由指定视图实现的属性和AutomationPattern对象,然后再使用为ListView控件定义的默认属性和模式。

适用于