Class ButtonAutomationPeer
Exposes Button types to UI automation.
Inheritance
System.Object
ButtonAutomationPeer
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ButtonAutomationPeer : ButtonBaseAutomationPeer, IDependencyObject, IInvokeProvider
Constructors
| Improve this Doc View SourceButtonAutomationPeer(Button)
Initializes a new instance of the ButtonAutomationPeer class.
Declaration
public ButtonAutomationPeer(Button owner)
Parameters
| Type | Name | Description |
|---|---|---|
| Button | owner | The element associated with this automation peer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the element that is associated with this ButtonAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the class that is associated with this UI automation peer.
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The class name. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that supports the specified pattern, based on the patterns supported by this ButtonAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternInterface | patternInterface | One of the enumeration values. |
Returns
| Type | Description |
|---|---|
| System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIInvokeProvider.Invoke()
Declaration
void IInvokeProvider.Invoke()