Class AccordionAutomationPeer
Exposes Accordion types to UI Automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.Layout.Toolkit.dll
Syntax
public class AccordionAutomationPeer : ItemsControlAutomationPeer, IDependencyObject, ISelectionProvider
Constructors
| Improve this Doc View SourceAccordionAutomationPeer(Accordion)
Initializes a new instance of the AccordionAutomationPeer class.
Declaration
public AccordionAutomationPeer(Accordion owner)
Parameters
| Type | Name | Description |
|---|---|---|
| Accordion | owner | The Accordion that is associated with this AccordionAutomationPeer. |
Properties
| Improve this Doc View SourceCanSelectMultiple
Gets a value indicating whether the UI Automation provider allows more than one child element to be selected concurrently.
Declaration
public bool CanSelectMultiple { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true if multiple selection is allowed; otherwise, false. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IsSelectionRequired
Gets a value indicating whether the UI Automation provider requires at least one child element to be selected.
Declaration
public bool IsSelectionRequired { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true if selection is required; otherwise, false. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the Accordion that is associated with this AccordionAutomationPeer. This method is called by GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| AutomationControlType | List AutomationControlType. |
Overrides
| Improve this Doc View SourceGetChildrenCore()
Gets the collection of child elements of the ItemsControl that is associated with this ItemsControlAutomationPeer.
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<AutomationPeer> | A collection of AccordionItemAutomationPeer elements, or null if the Accordion that is associated with this AccordionAutomationPeer is empty. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the Accordion that is associated with this AccordionAutomationPeer. This method is called by GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The name Accordion. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the Accordion that is associated with this AccordionAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternInterface | patternInterface | The desired PatternInterface. |
Returns
| Type | Description |
|---|---|
| System.Object | The desired AutomationPeer or null. |
Overrides
| Improve this Doc View SourceGetSelection()
Retrieves a UI Automation provider for each child element that is selected.
Declaration
public IRawElementProviderSimple[] GetSelection()
Returns
| Type | Description |
|---|---|
| IRawElementProviderSimple[] | An array of UI Automation providers. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.