Class SimpleMenuButtonAutomationPeer
Class that provides UI Automation support.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Tools.AutomationPeer
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class SimpleMenuButtonAutomationPeer : FrameworkElementAutomationPeer, IInvokeProvider
Constructors
SimpleMenuButtonAutomationPeer(SimpleMenuButton)
Initializes a new instance of the SimpleMenuButtonAutomationPeer class.
Declaration
public SimpleMenuButtonAutomationPeer(SimpleMenuButton control)
Parameters
| Type | Name | Description |
|---|---|---|
| SimpleMenuButton | control | The control. |
Methods
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. |
GetClassNameCore()
Returns SimpleMenuButton class name.
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | It returns simple menu button |
GetItemStatusCore()
Returns a string that describes the status of the associated SimpleMenuButton for UI Automation.
Declaration
protected override string GetItemStatusCore()
Returns
| Type | Description |
|---|---|
| System.String | A string representing the current status of the SimpleMenuButton, including its description, label, icon, icon size, and small icon information. |
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. |
GetPattern(PatternInterface)
Gets the control pattern for the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Automation.Peers.PatternInterface | patternInterface | A value from the enumeration. |
Returns
| Type | Description |
|---|---|
| System.Object | It returns null. |
Invoke()
Invokes SimpleMenuButton Click event.
Declaration
public void Invoke()