Skip to main content
ButtonAutomationPeer Class
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Exposes Button types to UI Automation.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)


public class ButtonAutomationPeer : ButtonBaseAutomationPeer, 
	IInvokeProvider
public ref class ButtonAutomationPeer : ButtonBaseAutomationPeer, 
	IInvokeProvider
type ButtonAutomationPeer = 
    class
        inherit ButtonBaseAutomationPeer
        interface IInvokeProvider
    end
Public Class ButtonAutomationPeer
	Inherits ButtonBaseAutomationPeer
	Implements IInvokeProvider
NameDescription
System_CAPS_pubmethod ButtonAutomationPeer

Initializes a new instance of the ButtonAutomationPeer class.

NameDescription
System_CAPS_pubproperty

Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)

System_CAPS_pubproperty

Gets or sets an AutomationPeer that is reported to the automation client as a source for all the events that come from this AutomationPeer.(Inherited from AutomationPeer.)

System_CAPS_protproperty

Gets a value that indicates whether the element that is associated with this AutomationPeer hosts hwnds in Windows Presentation Foundation (WPF).(Inherited from AutomationPeer.)

System_CAPS_pubproperty

Gets the UIElement that is associated with this UIElementAutomationPeer.(Inherited from UIElementAutomationPeer.)

NameDescription
System_CAPS_pubmethod CheckAccess

Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

System_CAPS_pubmethod Equals

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethod Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethod GetAcceleratorKey

Gets the accelerator key combinations for the element that is associated with the UI Automation peer. (Inherited from AutomationPeer.)

System_CAPS_protmethod GetAcceleratorKeyCore

Gets the accelerator key for the element associated with this ButtonBaseAutomationPeer. Called by GetAcceleratorKey.(Inherited from ButtonBaseAutomationPeer.)

System_CAPS_pubmethod GetAccessKey

Gets the access key for the element that is associated with the automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetAccessKeyCore

Gets the access key for the UIElement that is associated with this UIElementAutomationPeer.This method is called by GetAccessKey.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetAutomationControlType

Gets the control type for the element that is associated with the UI Automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetAutomationControlTypeCore

Gets the control type of the element that is associated with the UI Automation peer.(Overrides UIElementAutomationPeerGetAutomationControlTypeCore.)

System_CAPS_pubmethod GetAutomationId

Gets the AutomationId of the element that is associated with the automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetAutomationIdCore

Gets the AutomationId for the element associated with this ButtonBaseAutomationPeer. Called by GetAutomationId.(Inherited from ButtonBaseAutomationPeer.)

System_CAPS_pubmethod GetBoundingRectangle

Gets the Rect object that represents the screen coordinates of the element that is associated with the automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetBoundingRectangleCore

Gets the Rect that represents the bounding rectangle of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetBoundingRectangle.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetChildren

Gets the collection of GetChildren elements that are represented in the UI Automation tree as immediate child elements of the automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetChildrenCore

Gets the collection of child elements of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetChildren.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetClassName

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

System_CAPS_protmethod GetClassNameCore

Gets the name of the control that is associated with this UI Automation peer.(Overrides UIElementAutomationPeerGetClassNameCore.)

System_CAPS_pubmethod GetClickablePoint

Gets a Point on the element that is associated with the automation peer that responds to a mouse click. (Inherited from AutomationPeer.)

System_CAPS_protmethod GetClickablePointCore

Gets a Point that represents the clickable space that is on the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClickablePoint.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetHashCode

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethod GetHelpText

Gets text that describes the functionality of the control that is associated with the automation peer. (Inherited from AutomationPeer.)

System_CAPS_protmethod GetHelpTextCore

Gets the string that describes the functionality of the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetHelpText.(Inherited from FrameworkElementAutomationPeer.)

System_CAPS_protmethod GetHostRawElementProviderCore

Tells UI Automation where in the UI Automation tree to place the hwnd being hosted by a Windows Presentation Foundation (WPF) element.(Inherited from AutomationPeer.)

System_CAPS_pubmethod GetItemStatus

Gets text that conveys the visual status of the element that is associated with this automation peer. (Inherited from AutomationPeer.)

System_CAPS_protmethod GetItemStatusCore

Gets a string that communicates the visual status of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetItemStatus.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetItemType

Gets a string that describes what kind of item an object represents. (Inherited from AutomationPeer.)

System_CAPS_protmethod GetItemTypeCore

Gets a human-readable string that contains the item type that the UIElement for this UIElementAutomationPeer represents. This method is called by GetItemType.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetLabeledBy

Gets the AutomationPeer for the Label that is targeted to the element. (Inherited from AutomationPeer.)

System_CAPS_protmethod GetLabeledByCore

Gets the AutomationPeer for the element that is targeted to the UIElement for this UIElementAutomationPeer. This method is called by GetLabeledBy.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetLiveSetting

Gets the notification characteristics of a live region that is associated with this automation peer. (Inherited from AutomationPeer.)

System_CAPS_protmethod GetLiveSettingCore

Gets the notification characteristics of the live region of the UIElement object that is associated with this UIElementAutomationPeer. This method is called by AutomationPeerGetLiveSetting.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetLocalizedControlType

Gets a human-readable localized string that represents the AutomationControlType value for the control that is associated with this automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetLocalizedControlTypeCore

When overridden in a derived class, is called by GetLocalizedControlType.(Inherited from AutomationPeer.)

System_CAPS_pubmethod GetName

Gets text that describes the element that is associated with this automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetNameCore

Gets the name of the class of the element associated with this ButtonBaseAutomationPeer. Called by GetName.(Inherited from ButtonBaseAutomationPeer.)

System_CAPS_pubmethod GetOrientation

Gets a value that indicates the explicit control orientation, if any.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetOrientationCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer is laid out in a specific direction. This method is called by GetOrientation.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod GetParent

Gets the AutomationPeer that is the parent of this AutomationPeer.(Inherited from AutomationPeer.)

System_CAPS_pubmethod GetPattern

Gets the object that supports the specified control pattern of the element that is associated with this automation peer.(Overrides UIElementAutomationPeerGetPattern.)

System_CAPS_pubmethod GetPeerFromPoint

Gets an AutomationPeer from the specified point.(Inherited from AutomationPeer.)

System_CAPS_protmethod GetPeerFromPointCore

When overridden in a derived class, is called from GetPeerFromPoint.(Inherited from AutomationPeer.)

System_CAPS_pubmethod GetType

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethod HasKeyboardFocus

Gets a value that indicates whether the element that is associated with this automation peer currently has keyboard focus.(Inherited from AutomationPeer.)

System_CAPS_protmethod HasKeyboardFocusCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer currently has keyboard input focus. This method is called by HasKeyboardFocus.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod InvalidatePeer

Triggers recalculation of the main properties of the AutomationPeer and raises the PropertyChanged notification to the Automation Client if the properties changed. (Inherited from AutomationPeer.)

System_CAPS_pubmethod IsContentElement

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

System_CAPS_protmethod IsContentElementCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer is an element that contains data that is presented to the user. This method is called by IsContentElement.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod 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.(Inherited from AutomationPeer.)

System_CAPS_protmethod IsControlElementCore

Gets or sets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer is understood by the end user as interactive. Optionally, the user might understand the UIElement as contributing to the logical structure of the control in the GUI. This method is called by IsControlElement.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod IsEnabled

Gets a value that indicates whether the element associated with this automation peer supports interaction.(Inherited from AutomationPeer.)

System_CAPS_protmethod IsEnabledCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer can accept keyboard focus. This method is called by IsKeyboardFocusable.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod IsKeyboardFocusable

Gets a value that indicates whether the element can accept keyboard focus.(Inherited from AutomationPeer.)

System_CAPS_protmethod IsKeyboardFocusableCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer can accept keyboard focus. This method is called by IsKeyboardFocusable.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod IsOffscreen

Gets a value that indicates whether an element is off the screen.(Inherited from AutomationPeer.)

System_CAPS_protmethod IsOffscreenCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer is off the screen. This method is called by IsOffscreen.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod IsPassword

Gets a value that indicates whether the element contains sensitive content.(Inherited from AutomationPeer.)

System_CAPS_protmethod IsPasswordCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer contains protected content. This method is called by IsPassword.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod IsRequiredForForm

Gets a value that indicates whether the element that is associated with this peer must be completed on a form.(Inherited from AutomationPeer.)

System_CAPS_protmethod IsRequiredForFormCore

Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer is required to be completed on a form. This method is called by IsRequiredForForm.(Inherited from UIElementAutomationPeer.)

System_CAPS_protmethod MemberwiseClone

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethod PeerFromProvider

Gets an AutomationPeer for the specified IRawElementProviderSimple proxy.(Inherited from AutomationPeer.)

System_CAPS_protmethod ProviderFromPeer

Gets the IRawElementProviderSimple for the specified AutomationPeer.(Inherited from AutomationPeer.)

System_CAPS_pubmethod RaiseAsyncContentLoadedEvent

Called by the AutomationPeer to raise the AsyncContentLoadedEvent event.(Inherited from AutomationPeer.)

System_CAPS_pubmethod RaiseAutomationEvent

Raises an automation event.(Inherited from AutomationPeer.)

System_CAPS_pubmethod RaisePropertyChangedEvent

Raises an event to notify the automation client of a changed property value.(Inherited from AutomationPeer.)

System_CAPS_pubmethod ResetChildrenCache

Synchronously resets the tree of child elements by calling GetChildrenCore. (Inherited from AutomationPeer.)

System_CAPS_pubmethod SetFocus

Sets the keyboard focus on the element that is associated with this automation peer.(Inherited from AutomationPeer.)

System_CAPS_protmethod SetFocusCore

Sets the keyboard input focus on the UIElement that is associated with this UIElementAutomationPeer. This method is called by SetFocus.(Inherited from UIElementAutomationPeer.)

System_CAPS_pubmethod ToString

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethod VerifyAccess

Enforces that the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

NameDescription
System_CAPS_pubinterface System_CAPS_privmethod IInvokeProviderInvoke

This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top