Class NativeFloatWindowAutomationPeer
Represents a custom automation peer for a native floating window, enabling UI Automation support and providing the ability to invoke actions.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class NativeFloatWindowAutomationPeer : WindowAutomationPeer, IInvokeProvider
Constructors
NativeFloatWindowAutomationPeer(NativeFloatWindow, Object)
Intialize a new instance of the NativeFloatWindowAutomationPeerclass.
Declaration
public NativeFloatWindowAutomationPeer(NativeFloatWindow control, object header)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeFloatWindow | control | The Control |
| System.Object | header | The header |
Methods
GetAccessKeyCore()
Retrieves the access key associated with the primary element of the owner, if available; otherwise, returns the base implementation's access key.
Declaration
protected override string GetAccessKeyCore()
Returns
| Type |
|---|
| System.String |
GetAutomationControlTypeCore()
Returns the control type for the associated UI element, which identifies it as a title bar in the UI Automation tree.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type |
|---|
| System.Windows.Automation.Peers.AutomationControlType |
GetAutomationIdCore()
Retrieves the automation ID for the associated UI element. Attempts to extract the name from the internal data context or primary element, falling back to the header or base implementation if necessary.
Declaration
protected override string GetAutomationIdCore()
Returns
| Type | Description |
|---|---|
| System.String | A System.String representing the automation ID, derived from the internal data context, the primary element's header, or the Syncfusion.Windows.Tools.Controls.NativeFloatWindowAutomationPeer.Header property. If none are available, |
GetHelpTextCore()
Retrieves the help text associated with the primary element of the owner, if available; otherwise, returns a default description for the native float window.
Declaration
protected override string GetHelpTextCore()
Returns
| Type |
|---|
| System.String |
GetNameCore()
Retrieves the name of the associated UI element for UI Automation. Attempts to extract the name from the primary element's System.Windows.Automation.AutomationProperties.NameProperty, the header of the primary element, or the Syncfusion.Windows.Tools.Controls.NativeFloatWindowAutomationPeer.Header property. Falls back to the base implementation if none are available.
Declaration
protected override string GetNameCore()
Returns
| Type |
|---|
| System.String |
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 | returns the pattern |
Invoke()
Represents the Invoke method.
Declaration
public void Invoke()