Class AccordionItemAutomationPeer
Exposes AccordionItem types to UI Automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: Controls.Layout.Toolkit.OpenSilver.dll
Syntax
public class AccordionItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, ISelectionItemProvider
Constructors
| Improve this Doc View SourceAccordionItemAutomationPeer(AccordionItem)
Initializes a new instance of the AccordionAutomationPeer class.
Declaration
public AccordionItemAutomationPeer(AccordionItem owner)
Parameters
Type | Name | Description |
---|---|---|
AccordionItem | owner | The Accordion that is associated with this AccordionAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the AccordionItem that is associated with this AccordionItemAutomationPeer. This method is called by GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | Custom AutomationControlType. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the AccordionItem that is associated with this AccordionItemAutomationPeer. This method is called by GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The name AccordionItem. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the AccordionItem that is associated with this AccordionItemAutomationPeer.
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
Explicit Interface Implementations
| Improve this Doc View SourceIExpandCollapseProvider.Collapse()
Collapses the AccordionItem.
Declaration
void IExpandCollapseProvider.Collapse()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IExpandCollapseProvider.Expand()
Expands the AccordionItem.
Declaration
void IExpandCollapseProvider.Expand()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IExpandCollapseProvider.ExpandCollapseState
Gets the state (expanded or collapsed) of the Accordion.
Declaration
ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState { get; }
Returns
Type | Description |
---|---|
ExpandCollapseState |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.AddToSelection()
Adds the AccordionItem to the collection of selected items.
Declaration
void ISelectionItemProvider.AddToSelection()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.IsSelected
Gets a value indicating whether the Accordion is selected.
Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.RemoveFromSelection()
Removes the current Accordion from the collection of selected items.
Declaration
void ISelectionItemProvider.RemoveFromSelection()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.Select()
Clears selection from currently selected items and then proceeds to select the current Accordion.
Declaration
void ISelectionItemProvider.Select()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.SelectionContainer
Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.
Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type | Description |
---|---|
IRawElementProviderSimple |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.