CaptureElementAutomationPeer CaptureElementAutomationPeer CaptureElementAutomationPeer Class

Exposes CaptureElement types to Microsoft UI Automation.

Syntax

Declaration

public class CaptureElementAutomationPeerpublic class CaptureElementAutomationPeerPublic Class CaptureElementAutomationPeer

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

The Windows Runtime CaptureElement class creates a new CaptureElementAutomationPeer as its OnCreateAutomationPeer definition. CaptureElement is sealed, so the normal scenario of deriving from the class and its existing peer isn't applicable to CaptureElementAutomationPeer.

Also, the CaptureElement isn't focusable, which limits its participation in a Microsoft UI Automation tree view of the UI.

Default peer implementation and overrides in CaptureElementAutomationPeer

CaptureElementAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

Constructors summary

Initializes a new instance of the CaptureElementAutomationPeer class.

Constructors

  • CaptureElementAutomationPeer(Windows.UI.Xaml.Controls.CaptureElement)
    CaptureElementAutomationPeer(Windows.UI.Xaml.Controls.CaptureElement)
    CaptureElementAutomationPeer(Windows.UI.Xaml.Controls.CaptureElement)
    CaptureElementAutomationPeer(Windows.UI.Xaml.Controls.CaptureElement)

    Initializes a new instance of the CaptureElementAutomationPeer class.

    public CaptureElementAutomationPeer(Windows.UI.Xaml.Controls.CaptureElement)public CaptureElementAutomationPeer(Windows.UI.Xaml.Controls.CaptureElement)Public Function CaptureElementAutomationPeer(Windows.UI.Xaml.Controls.CaptureElement) As

    Parameters

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Automation.Peers.dll