Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / AutomationPeerFactory Class / CreateAutomationPeer Method / CreateAutomationPeer(Object,Type) Method
Owner control.
Type of the owner control.

In This Topic
    CreateAutomationPeer(Object,Type) Method
    In This Topic
    Creates an instance of AutomationPeer class for given C1 control.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreateAutomationPeer( _
       ByVal peerOwner As Object, _
       ByVal ownerType As Type _
    ) As AutomationPeer
    public static AutomationPeer CreateAutomationPeer( 
       object peerOwner,
       Type ownerType
    )

    Parameters

    peerOwner
    Owner control.
    ownerType
    Type of the owner control.

    Return Value

    The automation peer object.
    See Also