[]
        
(Showing Draft Content)

C1.WPF.AutomationPeerFactory.CreateAutomationPeer

CreateAutomationPeer Method

CreateAutomationPeer(object, Type)

Creates an instance of AutomationPeer class for given C1 control.

Declaration
public static AutomationPeer CreateAutomationPeer(object peerOwner, Type ownerType)
Public Shared Function CreateAutomationPeer(peerOwner As Object, ownerType As Type) As AutomationPeer
Parameters
Type Name Description
object peerOwner

Owner control.

Type ownerType

Type of the owner control.

Returns
Type Description
AutomationPeer

The automation peer object.

CreateAutomationPeer(object, Type, Control)

Creates an instance of AutomationPeer class for given C1 control.

Declaration
public static AutomationPeer CreateAutomationPeer(object peerOwner, Type ownerType, Control owningSelectorControl)
Public Shared Function CreateAutomationPeer(peerOwner As Object, ownerType As Type, owningSelectorControl As Control) As AutomationPeer
Parameters
Type Name Description
object peerOwner

Owner control.

Type ownerType

Type of the owner control.

Control owningSelectorControl

Reference to the owning Selector control. It's required if AutomationPeer is inherited from the SelectorItemAutomationPeer.

Returns
Type Description
AutomationPeer

The automation peer object.