ComponentOne Basic Library for WPF and Silverlight
CreateAutomationPeer(Object,Type,Control) Method


C1.WPF Namespace > AutomationPeerFactory Class > CreateAutomationPeer Method : CreateAutomationPeer(Object,Type,Control) Method
Owner control.
Type of the owner control.
Reference to the owning Selector control. It's required if AutomationPeer is inherited from the SelectorItemAutomationPeer.
Creates an instance of AutomationPeer class for given C1 control.
Syntax
'Declaration
 
Public Overloads Shared Function CreateAutomationPeer( _
   ByVal peerOwner As System.Object, _
   ByVal ownerType As System.Type, _
   ByVal owningSelectorControl As System.Windows.Controls.Control _
) As System.Windows.Automation.Peers.AutomationPeer
'Usage
 
Dim peerOwner As System.Object
Dim ownerType As System.Type
Dim owningSelectorControl As System.Windows.Controls.Control
Dim value As System.Windows.Automation.Peers.AutomationPeer
 
value = AutomationPeerFactory.CreateAutomationPeer(peerOwner, ownerType, owningSelectorControl)
public static System.Windows.Automation.Peers.AutomationPeer CreateAutomationPeer( 
   System.object peerOwner,
   System.Type ownerType,
   System.Windows.Controls.Control owningSelectorControl
)

Parameters

peerOwner
Owner control.
ownerType
Type of the owner control.
owningSelectorControl
Reference to the owning Selector control. It's required if AutomationPeer is inherited from the SelectorItemAutomationPeer.

Return Value

The automation peer object.
See Also

Reference

AutomationPeerFactory Class
AutomationPeerFactory Members
Overload List