信息
您所需的主题如下所示。但此主题未包含在此库中。

UIElement.OnCreateAutomationPeer 方法

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

命名空间: System.Windows
程序集: PresentationCore(在 presentationcore.dll 中)

protected virtual AutomationPeer OnCreateAutomationPeer ()
protected AutomationPeer OnCreateAutomationPeer ()
protected function OnCreateAutomationPeer () : AutomationPeer
不能在 XAML 中使用方法。

返回值

The type-specific AutomationPeer implementation.

给继承者的说明: The implementation of this method is typically to call the constructor of a specific AutomationPeer implementation, and return it as the return value. All UIElement derived classes should implement this method in order to provide their own specific AutomationPeer implementations to the Windows Presentation Foundation (WPF) infrastructure. For details on implementing this pattern, see AutomationPeer.

Windows Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支持 Microsoft .NET Framework 3.0。

.NET Framework

受以下版本支持:3.0

社区附加资源

显示:
© 2015 Microsoft