AutomationPeer AutomationPeer AutomationPeer AutomationPeer Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Provides a base class that exposes the automation peer for an associated owner class to Microsoft UI Automation.

public : class AutomationPeer : DependencyObject, IAutomationPeer, IAutomationPeer2, IAutomationPeer3, IAutomationPeer4, IAutomationPeer5, IAutomationPeer6, IAutomationPeerOverrides, IAutomationPeerOverrides2, IAutomationPeerOverrides3, IAutomationPeerOverrides4, IAutomationPeerOverrides5, IAutomationPeerOverrides6, IAutomationPeerProtected
struct winrt::Windows::UI::Xaml::Automation::Peers::AutomationPeer : DependencyObject, IAutomationPeer, IAutomationPeer2, IAutomationPeer3, IAutomationPeer4, IAutomationPeer5, IAutomationPeer6, IAutomationPeerOverrides, IAutomationPeerOverrides2, IAutomationPeerOverrides3, IAutomationPeerOverrides4, IAutomationPeerOverrides5, IAutomationPeerOverrides6, IAutomationPeerProtected
public class AutomationPeer : DependencyObject, IAutomationPeer, IAutomationPeer2, IAutomationPeer3, IAutomationPeer4, IAutomationPeer5, IAutomationPeer6, IAutomationPeerOverrides, IAutomationPeerOverrides2, IAutomationPeerOverrides3, IAutomationPeerOverrides4, IAutomationPeerOverrides5, IAutomationPeerOverrides6, IAutomationPeerProtected
Public Class AutomationPeer Inherits DependencyObject Implements IAutomationPeer, IAutomationPeer2, IAutomationPeer3, IAutomationPeer4, IAutomationPeer5, IAutomationPeer6, IAutomationPeerOverrides, IAutomationPeerOverrides2, IAutomationPeerOverrides3, IAutomationPeerOverrides4, IAutomationPeerOverrides5, IAutomationPeerOverrides6, IAutomationPeerProtected
Inheritance
AutomationPeerAutomationPeerAutomationPeerAutomationPeer
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

AutomationPeer is the class that provides almost all of the API that eventually forwards the Microsoft UI Automation information for a UWP app using C++, C#, or Visual Basic to a Microsoft UI Automation client. Typical Microsoft UI Automation clients aren't calling AutomationPeer methods directly. These clients are often assistive technology that are using other programming models and operating as services, and are not likely to be calling Windows Runtime methods. But the general Microsoft UI Automation support in the Windows Runtime forwards all this information using the provider side of the Microsoft UI Automation framework. Any clients to Microsoft UI Automation can interact with the representative automation trees of a UWP app using C++, C#, or Visual Basic.

Firing automation events

The AutomationPeer class is relevant to Windows Runtime control authors because you will have a peer instance available at run time, after the runtime invokes the OnCreateAutomationPeer method. Using this peer, you can fire automation events by calling RaiseAutomationEvent and RaisePropertyChangedEvent. You would do this whenever a related property in the peer's owner (your class) changes, or when firing an event is needed for correct automation support.

The automation support design doesn't retain a handle to your own peer as part of how you implement OnCreateAutomationPeer, because there aren't any guarantees of when the peer is actually created. Instead, you can check for run-time automation event listeners inside your control class definitions just-in-time, using code like this:

if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
{
    MyAutomationPeer peer = 
        FrameworkElementAutomationPeer.FromElement(myCtrl) as MyAutomationPeer;

    if (peer != null)
    {
        peer.RaisePropertyChangedEvent(
            RangeValuePatternIdentifiers.ValueProperty,
            (double)oldValue,
            (double)newValue);
    }
}
If AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged) Then
    Dim peer As MyAutomationPeer = _
    TryCast(FrameworkElementAutomationPeer.FromElement(myCtrl), MyAutomationPeer)
    If peer IsNot Nothing Then
        peer.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.ValueProperty, CDbl(oldValue), CDbl(newValue))
    End If
End If

AutomationPeer derived classes

AutomationPeer is in the hierarchy for all the existing peers for the Windows Runtime controls and related UI classes.

Classes that directly derive from AutomationPeer are:

Core methods

The "Core" methods are the standard implementations that perform the default action of an associated Microsoft UI Automation client-callable method. You can override any of the "Core" methods to return alternative values in a custom automation peer. For example, GetAcceleratorKeyCore is invoked any time that GetAcceleratorKey is called, GetAccessKeyCore is invoked any time that GetAccessKey is called, and so on.

The base implementation for AutomationPeer returns null. Peers that represent items may defer the result to their container.

Constructors

AutomationPeer() AutomationPeer() AutomationPeer() AutomationPeer()

Provides base class initialization behavior for AutomationPeer derived classes.

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

(Inherited from DependencyObject)
EventsSource EventsSource EventsSource EventsSource

Gets or sets an AutomationPeer that is reported to the automation client as the source for all the events that come from this AutomationPeer. See Remarks.

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Clears the local value of a dependency property.

(Inherited from DependencyObject)
GenerateRawElementProviderRuntimeId() GenerateRawElementProviderRuntimeId() GenerateRawElementProviderRuntimeId() GenerateRawElementProviderRuntimeId()

Generates a runtime identifier for the element that is associated with the automation peer.

GetAcceleratorKey() GetAcceleratorKey() GetAcceleratorKey() GetAcceleratorKey()

Gets the accelerator key combinations for the object that is associated with the UI Automation peer.

GetAcceleratorKeyCore() GetAcceleratorKeyCore() GetAcceleratorKeyCore() GetAcceleratorKeyCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetAcceleratorKey or an equivalent Microsoft UI Automation client API.

GetAccessKey() GetAccessKey() GetAccessKey() GetAccessKey()

Gets the access key for the element that is associated with the automation peer.

GetAccessKeyCore() GetAccessKeyCore() GetAccessKeyCore() GetAccessKeyCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetAccessKey or an equivalent Microsoft UI Automation client API.

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Returns any base value established for a dependency property, which would apply in cases where an animation is not active.

(Inherited from DependencyObject)
GetAnnotations() GetAnnotations() GetAnnotations() GetAnnotations()

Gets a reference to the list of UI automation annotations for the current automation peer.

GetAnnotationsCore() GetAnnotationsCore() GetAnnotationsCore() GetAnnotationsCore()

Provides the behavior of the peer when a Microsoft UI Automation client calls GetAnnotations or an equivalent Microsoft UI Automation client API.

GetAutomationControlType() GetAutomationControlType() GetAutomationControlType() GetAutomationControlType()

Gets the control type for the element that is associated with the UI Automation peer.

GetAutomationControlTypeCore() GetAutomationControlTypeCore() GetAutomationControlTypeCore() GetAutomationControlTypeCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetAutomationControlType or an equivalent Microsoft UI Automation client API.

GetAutomationId() GetAutomationId() GetAutomationId() GetAutomationId()

Gets the AutomationId of the element that is associated with the automation peer.

GetAutomationIdCore() GetAutomationIdCore() GetAutomationIdCore() GetAutomationIdCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetAutomationId or an equivalent Microsoft UI Automation client API.

GetBoundingRectangle() GetBoundingRectangle() GetBoundingRectangle() GetBoundingRectangle()

Gets the Rect object that represents the screen coordinates of the element that is associated with the automation peer.

GetBoundingRectangleCore() GetBoundingRectangleCore() GetBoundingRectangleCore() GetBoundingRectangleCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetBoundingRectangle or an equivalent Microsoft UI Automation client API.

GetChildren() GetChildren() GetChildren() GetChildren()

Gets the collection of child elements that are represented in the UI Automation tree as immediate child elements of the automation peer.

GetChildrenCore() GetChildrenCore() GetChildrenCore() GetChildrenCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetChildren or an equivalent Microsoft UI Automation client API.

GetClassName() GetClassName() GetClassName() GetClassName()

Gets a name that is used with AutomationControlType, to differentiate the control that is represented by this AutomationPeer.

GetClassNameCore() GetClassNameCore() GetClassNameCore() GetClassNameCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetClassName or an equivalent Microsoft UI Automation client API.

GetClickablePoint() GetClickablePoint() GetClickablePoint() GetClickablePoint()

Gets a point on the element that is associated with the automation peer that responds to a mouse click.

GetClickablePointCore() GetClickablePointCore() GetClickablePointCore() GetClickablePointCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetClickablePoint or an equivalent Microsoft UI Automation client API.

GetControlledPeers() GetControlledPeers() GetControlledPeers() GetControlledPeers()

Provides the peer's behavior when a Microsoft UI Automation client calls GetControlledPeers or an equivalent Microsoft UI Automation client API such as getting a property value as identified by UIA_ControllerForPropertyId.

GetControlledPeersCore() GetControlledPeersCore() GetControlledPeersCore() GetControlledPeersCore()

Gets a list of the controlled peers for the current automation peer.

GetCulture() GetCulture() GetCulture() GetCulture()

Calls GetCultureCore to get the culture value for the element that is associated with the automation peer.

GetCultureCore() GetCultureCore() GetCultureCore() GetCultureCore()

Gets the culture value for the element that is associated with the automation peer.

GetDescribedByCore() GetDescribedByCore() GetDescribedByCore() GetDescribedByCore()

Gets a collection of elements that provide more information about the automation element.

GetElementFromPoint(Point) GetElementFromPoint(Point) GetElementFromPoint(Point) GetElementFromPoint(Point)

Gets an element from the specified point.

GetElementFromPointCore(Point) GetElementFromPointCore(Point) GetElementFromPointCore(Point) GetElementFromPointCore(Point)

Provides the behavior of the peer when a Microsoft UI Automation client calls GetElementFromPoint or an equivalent Microsoft UI Automation client API.

GetFlowsFromCore() GetFlowsFromCore() GetFlowsFromCore() GetFlowsFromCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetFlowsFrom or an equivalent Microsoft UI Automation client API.

GetFlowsToCore() GetFlowsToCore() GetFlowsToCore() GetFlowsToCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetFlowsTo or an equivalent Microsoft UI Automation client API.

GetFocusedElement() GetFocusedElement() GetFocusedElement() GetFocusedElement()

Gets the element that currently has the focus.

GetFocusedElementCore() GetFocusedElementCore() GetFocusedElementCore() GetFocusedElementCore()

Provides the behavior of the peer when a Microsoft UI Automation client calls GetFocusedElement or an equivalent Microsoft UI Automation client API.

GetFullDescription() GetFullDescription() GetFullDescription() GetFullDescription()

Gets a localized string that describes the actual visual appearance or contents of something such as an image or image control.

GetFullDescriptionCore() GetFullDescriptionCore() GetFullDescriptionCore() GetFullDescriptionCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetFullDescription or an equivalent Microsoft UI Automation client API.

GetHeadingLevel() GetHeadingLevel() GetHeadingLevel() GetHeadingLevel()

Gets the heading level of the UI Automation element that is associated with this automation peer.

GetHeadingLevelCore() GetHeadingLevelCore() GetHeadingLevelCore() GetHeadingLevelCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetHeadingLevel or an equivalent Microsoft UI Automation client API.

GetHelpText() GetHelpText() GetHelpText() GetHelpText()

Gets text that describes the functionality of the control that is associated with the automation peer.

GetHelpTextCore() GetHelpTextCore() GetHelpTextCore() GetHelpTextCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetHelpText or an equivalent Microsoft UI Automation client API.

GetItemStatus() GetItemStatus() GetItemStatus() GetItemStatus()

Gets text that conveys the visual status of the element that is associated with this automation peer.

GetItemStatusCore() GetItemStatusCore() GetItemStatusCore() GetItemStatusCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetItemStatus or an equivalent Microsoft UI Automation client API.

GetItemType() GetItemType() GetItemType() GetItemType()

Gets a string that describes what kind of item an element represents.

GetItemTypeCore() GetItemTypeCore() GetItemTypeCore() GetItemTypeCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetItemType or an equivalent Microsoft UI Automation client API.

GetLabeledBy() GetLabeledBy() GetLabeledBy() GetLabeledBy()

Gets the AutomationPeer for the UIElement that is targeted to the element.

GetLabeledByCore() GetLabeledByCore() GetLabeledByCore() GetLabeledByCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetLabeledBy or an equivalent Microsoft UI Automation client API.

GetLandmarkType() GetLandmarkType() GetLandmarkType() GetLandmarkType()

Gets the landmark type for this automation peer.

GetLandmarkTypeCore() GetLandmarkTypeCore() GetLandmarkTypeCore() GetLandmarkTypeCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetLandmarkType or an equivalent Microsoft UI Automation client API.

GetLevel() GetLevel() GetLevel() GetLevel()

Returns the 1-based integer for the level (hierarchy) of the element that is associated with the automation peer.

GetLevelCore() GetLevelCore() GetLevelCore() GetLevelCore()

Provides the behavior of the peer when a Microsoft UI Automation client calls GetLevel or an equivalent Microsoft UI Automation client API.

GetLiveSetting() GetLiveSetting() GetLiveSetting() GetLiveSetting()

Gets the live setting notification behavior information for the object that is associated with the UI Automation peer.

GetLiveSettingCore() GetLiveSettingCore() GetLiveSettingCore() GetLiveSettingCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetLiveSetting or an equivalent Microsoft UI Automation client API.

GetLocalizedControlType() GetLocalizedControlType() GetLocalizedControlType() GetLocalizedControlType()

Gets a localized string that represents the AutomationControlType value for the control that is associated with this automation peer.

GetLocalizedControlTypeCore() GetLocalizedControlTypeCore() GetLocalizedControlTypeCore() GetLocalizedControlTypeCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetLocalizedControlType or an equivalent Microsoft UI Automation client API.

GetLocalizedLandmarkType() GetLocalizedLandmarkType() GetLocalizedLandmarkType() GetLocalizedLandmarkType()

Gets a localized string that represents the AutomationLandmarkType value for the element that is associated with this automation peer.

GetLocalizedLandmarkTypeCore() GetLocalizedLandmarkTypeCore() GetLocalizedLandmarkTypeCore() GetLocalizedLandmarkTypeCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetLocalizedLandmarkType or an equivalent Microsoft UI Automation client API.

GetName() GetName() GetName() GetName()

Gets text that describes the element that is associated with this automation peer. The Microsoft UI Automation Name value is the primary identifier used by most assistive technology when they represent your app's UI by interacting with the Microsoft UI Automation framework.

GetNameCore() GetNameCore() GetNameCore() GetNameCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetName or an equivalent Microsoft UI Automation client API.

GetOrientation() GetOrientation() GetOrientation() GetOrientation()

Gets a value that indicates the explicit control orientation, if any.

GetOrientationCore() GetOrientationCore() GetOrientationCore() GetOrientationCore()

Provides the peer's behavior when a Microsoft UI Automation client calls GetOrientation or an equivalent Microsoft UI Automation client API.

GetParent() GetParent() GetParent() GetParent()

Gets the AutomationPeer that is the parent of this AutomationPeer.

GetPattern(PatternInterface) GetPattern(PatternInterface) GetPattern(PatternInterface) GetPattern(PatternInterface)

Gets the control pattern that is associated with the specified PatternInterface.

GetPatternCore(PatternInterface) GetPatternCore(PatternInterface) GetPatternCore(PatternInterface) GetPatternCore(PatternInterface)

Provides the peer's behavior when a Microsoft UI Automation client calls GetPattern or an equivalent Microsoft UI Automation client API.

GetPeerFromPoint(Point) GetPeerFromPoint(Point) GetPeerFromPoint(Point) GetPeerFromPoint(Point)

Gets an AutomationPeer from the specified point.

GetPeerFromPointCore(Point) GetPeerFromPointCore(Point) GetPeerFromPointCore(Point) GetPeerFromPointCore(Point)

Provides the peer's behavior when a Microsoft UI Automation client calls GetPeerFromPoint or an equivalent Microsoft UI Automation client API.

GetPositionInSet() GetPositionInSet() GetPositionInSet() GetPositionInSet()

Returns the 1-based integer for the ordinal position in the set for the element that is associated with the automation peer.

GetPositionInSetCore() GetPositionInSetCore() GetPositionInSetCore() GetPositionInSetCore()

Provides the peer’s behavior when a Microsoft UI Automation client calls GetPositionInSet or an equivalent Microsoft UI Automation client API.

GetSizeOfSet() GetSizeOfSet() GetSizeOfSet() GetSizeOfSet()

Returns the 1-based integer for the size of the set where the element that is associated with the automation peer is located.

GetSizeOfSetCore() GetSizeOfSetCore() GetSizeOfSetCore() GetSizeOfSetCore()

Provides the peer’s behavior when a Microsoft UI Automation client calls GetSizeOfSet or an equivalent Microsoft UI Automation client API.

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Returns the current effective value of a dependency property from a DependencyObject.

(Inherited from DependencyObject)
HasKeyboardFocus() HasKeyboardFocus() HasKeyboardFocus() HasKeyboardFocus()

Gets a value that indicates whether the element that is associated with this automation peer currently has keyboard focus.

HasKeyboardFocusCore() HasKeyboardFocusCore() HasKeyboardFocusCore() HasKeyboardFocusCore()

Provides the peer's behavior when a Microsoft UI Automation client calls HasKeyboardFocus or an equivalent Microsoft UI Automation client API.

InvalidatePeer() InvalidatePeer() InvalidatePeer() InvalidatePeer()

Triggers recalculation of the main properties of the AutomationPeer and raises the PropertyChanged notification to the automation client if the properties have changed.

IsContentElement() IsContentElement() IsContentElement() IsContentElement()

Gets a value that indicates whether the element that is associated with this automation peer contains data that is presented to the user.

IsContentElementCore() IsContentElementCore() IsContentElementCore() IsContentElementCore()

Provides the peer's behavior when a Microsoft UI Automation client calls IsContentElement or an equivalent Microsoft UI Automation client API.

IsControlElement() IsControlElement() IsControlElement() IsControlElement()

Gets a value that indicates whether the element is understood by the user as interactive or as contributing to the logical structure of the control in the GUI.

IsControlElementCore() IsControlElementCore() IsControlElementCore() IsControlElementCore()

Provides the peer's behavior when a Microsoft UI Automation client calls IsControlElement or an equivalent Microsoft UI Automation client API.

IsDataValidForForm() IsDataValidForForm() IsDataValidForForm() IsDataValidForForm()

Gets a Boolean value that indicates whether the entered or selected value is valid for the form rule associated with the automation element.

IsDataValidForFormCore() IsDataValidForFormCore() IsDataValidForFormCore() IsDataValidForFormCore()

Provides the peer’s behavior when a Microsoft UI Automation client accesses IsDataValidForForm or an equivalent Microsoft UI Automation client API.

IsEnabled() IsEnabled() IsEnabled() IsEnabled()

Gets a value that indicates whether the element associated with this automation peer supports interaction.

IsEnabledCore() IsEnabledCore() IsEnabledCore() IsEnabledCore()

Provides the peer's behavior when a Microsoft UI Automation client calls IsEnabled or an equivalent Microsoft UI Automation client API.

IsKeyboardFocusable() IsKeyboardFocusable() IsKeyboardFocusable() IsKeyboardFocusable()

Gets a value that indicates whether the element can accept keyboard focus.

IsKeyboardFocusableCore() IsKeyboardFocusableCore() IsKeyboardFocusableCore() IsKeyboardFocusableCore()

Provides the peer's behavior when a Microsoft UI Automation client calls IsKeyboardFocusable or an equivalent Microsoft UI Automation client API.

IsOffscreen() IsOffscreen() IsOffscreen() IsOffscreen()

Gets a value that indicates whether an element is off the screen.

IsOffscreenCore() IsOffscreenCore() IsOffscreenCore() IsOffscreenCore()

Provides the peer's behavior when a Microsoft UI Automation client calls IsOffscreen or an equivalent Microsoft UI Automation client API.

IsPassword() IsPassword() IsPassword() IsPassword()

Gets a value that indicates whether the element contains sensitive content.

IsPasswordCore() IsPasswordCore() IsPasswordCore() IsPasswordCore()

Provides the peer's behavior when a Microsoft UI Automation client calls IsPassword or an equivalent Microsoft UI Automation client API.

IsPeripheral() IsPeripheral() IsPeripheral() IsPeripheral()

Gets a Boolean value that indicates whether the automation element represents peripheral UI.

IsPeripheralCore() IsPeripheralCore() IsPeripheralCore() IsPeripheralCore()

Provides the peer’s behavior when a Microsoft UI Automation client accesses IsPeripheral or an equivalent Microsoft UI Automation client API.

IsRequiredForForm() IsRequiredForForm() IsRequiredForForm() IsRequiredForForm()

Gets a value that indicates whether the element that is associated with this peer must be completed on a form.

IsRequiredForFormCore() IsRequiredForFormCore() IsRequiredForFormCore() IsRequiredForFormCore()

Provides the peer's behavior when a Microsoft UI Automation client calls IsRequiredForForm or an equivalent Microsoft UI Automation client API.

ListenerExists(AutomationEvents) ListenerExists(AutomationEvents) ListenerExists(AutomationEvents) ListenerExists(AutomationEvents)

Gets a value that indicates whether Microsoft UI Automation reports that a client is listening for the specified event.

Navigate(AutomationNavigationDirection) Navigate(AutomationNavigationDirection) Navigate(AutomationNavigationDirection) Navigate(AutomationNavigationDirection)

Gets the element in the specified direction within the UI automation tree.

NavigateCore(AutomationNavigationDirection) NavigateCore(AutomationNavigationDirection) NavigateCore(AutomationNavigationDirection) NavigateCore(AutomationNavigationDirection)

Provides the peer’s behavior when a Microsoft UI Automation client calls Navigate or an equivalent Microsoft UI Automation client API.

PeerFromProvider(IRawElementProviderSimple) PeerFromProvider(IRawElementProviderSimple) PeerFromProvider(IRawElementProviderSimple) PeerFromProvider(IRawElementProviderSimple)

Gets an AutomationPeer for the specified IRawElementProviderSimple proxy.

ProviderFromPeer(AutomationPeer) ProviderFromPeer(AutomationPeer) ProviderFromPeer(AutomationPeer) ProviderFromPeer(AutomationPeer)

Gets the IRawElementProviderSimple proxy for the specified AutomationPeer.

RaiseAutomationEvent(AutomationEvents) RaiseAutomationEvent(AutomationEvents) RaiseAutomationEvent(AutomationEvents) RaiseAutomationEvent(AutomationEvents)

Raises an automation event.

RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, String, String) RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, String, String) RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, String, String) RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, String, String)

Initiates a notification event.

RaisePropertyChangedEvent(AutomationProperty, Object, Object) RaisePropertyChangedEvent(AutomationProperty, Object, Object) RaisePropertyChangedEvent(AutomationProperty, Object, Object) RaisePropertyChangedEvent(AutomationProperty, Object, Object)

Raises an event to notify the automation client of a changed property value.

RaiseStructureChangedEvent(AutomationStructureChangeType, AutomationPeer) RaiseStructureChangedEvent(AutomationStructureChangeType, AutomationPeer) RaiseStructureChangedEvent(AutomationStructureChangeType, AutomationPeer) RaiseStructureChangedEvent(AutomationStructureChangeType, AutomationPeer)

Raises an event to notify the Microsoft UI Automation core that the tree structure has changed.

RaiseTextEditTextChangedEvent(AutomationTextEditChangeType, IVectorView<String>) RaiseTextEditTextChangedEvent(AutomationTextEditChangeType, IVectorView<String>) RaiseTextEditTextChangedEvent(AutomationTextEditChangeType, IVectorView<String>) RaiseTextEditTextChangedEvent(AutomationTextEditChangeType, IVectorView<String>)

Raises an event to notify the Microsoft UI Automation core that a text control has programmatically changed text.

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if a local value is set.

(Inherited from DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance.

(Inherited from DependencyObject)
SetFocus() SetFocus() SetFocus() SetFocus()

Sets the keyboard focus on the element that is associated with this automation peer.

SetFocusCore() SetFocusCore() SetFocusCore() SetFocusCore()

Provides the peer's behavior when a Microsoft UI Automation client calls SetFocus or an equivalent Microsoft UI Automation client API.

SetParent(AutomationPeer) SetParent(AutomationPeer) SetParent(AutomationPeer) SetParent(AutomationPeer)

Sets the AutomationPeer that is the parent of this AutomationPeer.

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Sets the local value of a dependency property on a DependencyObject.

(Inherited from DependencyObject)
ShowContextMenu() ShowContextMenu() ShowContextMenu() ShowContextMenu()

Shows the available context menu for the owner element.

ShowContextMenuCore() ShowContextMenuCore() ShowContextMenuCore() ShowContextMenuCore()

Provides the peer's behavior when a Microsoft UI Automation client calls ShowContextMenu or an equivalent Microsoft UI Automation client API.

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback.

(Inherited from DependencyObject)

See Also