OnCreateAutomationPeer Method
See Also 
SourceCode.Workflow.WizardFramework.Controls.K2DatePicker.ColorPicker Namespace > ColorPicker Class : OnCreateAutomationPeer Method



Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Protected Overrides Function OnCreateAutomationPeer() As AutomationPeer
Visual Basic (Usage)Copy Code
Dim instance As ColorPicker
Dim value As AutomationPeer
 
value = instance.OnCreateAutomationPeer()
C# 
protected override AutomationPeer OnCreateAutomationPeer()
C++/CLI 
protected:
AutomationPeer^ OnCreateAutomationPeer(); override 

Return Value

The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.

Requirements

Target Platforms: Windows 7, 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