Class DropDownButtonAutomationPeer
Inheritance
Namespace: Syncfusion.Windows.Controls.Tools.AutomationPeer
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class DropDownButtonAutomationPeer : FrameworkElementAutomationPeer
Constructors
DropDownButtonAutomationPeer(DropDownButton)
Initializes a new instance of the RibbonButtonAutomationPeer class.
Declaration
public DropDownButtonAutomationPeer(DropDownButton control)
Parameters
| Type | Name | Description |
|---|---|---|
| DropDownButton | control | The control. |
Methods
GetAccessKeyCore()
Gets the access key for the UIElement that is associated with this UIElementAutomationPeer
Declaration
protected override string GetAccessKeyCore()
Returns
| Type | Description |
|---|---|
| System.String | The access key |
GetAutomationControlTypeCore()
Gets the control type for the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Peers.AutomationControlType | The System.Windows.Automation.Peers.AutomationControlType.Custom enumeration value. |
GetAutomationIdCore()
Provides the peer's behavior when a UI Automation client calls GetAutomationId or an equivalent UI Automation client API.
Declaration
protected override string GetAutomationIdCore()
Returns
| Type | Description |
|---|---|
| System.String | The automation identifier. |
GetChildrenCore()
Retrieves the child automation peers of this dropdown button. The items hosted in the dropdown (RibbonMenuItem instances and other UIElement items) are exposed as children so that the automation hierarchy matches the visual hierarchy, even when the dropdown is closed and the item containers are not part of the visual tree.
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer> | A list of Syncfusion.Windows.Controls.Tools.AutomationPeer instances representing the items of the dropdown button. |
GetClassNameCore()
Gets the name of the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | An System.String.Empty string. |
GetHelpTextCore()
Provides the peer's behavior when a UI Automation client calls GetHelpText or an equivalent UI Automation client API.
Declaration
protected override string GetHelpTextCore()
Returns
| Type | Description |
|---|---|
| System.String | The help text. |
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetLocalizedControlType.
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
| Type | Description |
|---|---|
| System.String | The string that contains the type of control. |
GetNameCore()
Provides the peer's behavior when a UI Automation client calls GetName or an equivalent UI Automation client API.
Declaration
protected override string GetNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The name as used by assistive technoloGetClassNameCoreies and other UI Automation clients. |
Invoke()
Sends a request to activate a control and initiate its single, unambiguous action.
Declaration
public void Invoke()
Exceptions
| Type | Condition |
|---|---|
| System.Windows.Automation.ElementNotEnabledException | If the control is not enabled. |