Class ToggleButtonAutomationPeer
Exposes ToggleButton types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ToggleButtonAutomationPeer : ButtonBaseAutomationPeer, IDependencyObject, IToggleProvider
Constructors
| Improve this Doc View SourceToggleButtonAutomationPeer(ToggleButton)
Initializes a new instance of the ToggleButtonAutomationPeer class.
Declaration
public ToggleButtonAutomationPeer(ToggleButton owner)
Parameters
Type | Name | Description |
---|---|---|
ToggleButton | owner | The ToggleButton to associate with this ToggleButtonAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the element that is associated with this ToggleButtonAutomationPeer. 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 ToggleButtonAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The name of the associated class. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that supports the requested pattern, based on the patterns supported by this ToggleButtonAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values that indicates the control pattern. |
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 SourceIToggleProvider.Toggle()
Declaration
void IToggleProvider.Toggle()
IToggleProvider.ToggleState
Declaration
ToggleState IToggleProvider.ToggleState { get; }
Returns
Type | Description |
---|---|
ToggleState |