DesignerView.OnCreateAutomationPeer Method

Creates and returns an AutomationPeer for use by the automation infrastructure.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected Overrides Function OnCreateAutomationPeer As AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
protected:
virtual AutomationPeer^ OnCreateAutomationPeer() override
abstract OnCreateAutomationPeer : unit -> AutomationPeer 
override OnCreateAutomationPeer : unit -> AutomationPeer 
protected override function OnCreateAutomationPeer() : AutomationPeer

Return Value

Type: System.Windows.Automation.Peers.AutomationPeer
An AutomationPeer for this object.

.NET Framework Security

See Also

Reference

DesignerView Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture