Exposes a spin element's text box and direction buttons to UI Automation and reports value changes.
Definition
Namespace:Telerik.WinControls.UIAutomation.Spinner
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SpinElementUIAutomationProvider : RadElementBaseUIAutomationProvider<RadSpinElement>, IRadRawElementProviderFragment, IRawElementProviderFragment, IRawElementProviderSimple
Inheritance: objectRadFragmentUIAutomationProviderRadElementBaseUIAutomationProvider<RadSpinElement>SpinElementUIAutomationProvider
Implements:
Inherited Members
Constructors
Creates the provider and subscribes to value and property changes on the spin element.
public SpinElementUIAutomationProvider(IRadRawElementProviderFragment parent, RadSpinElement owner)
The parent fragment that exposes the spin element.
ownerRadSpinElementThe spin element represented by this provider.
Properties
Gets the spin element represented by this provider.
public RadSpinElement SpinElement { get; }
Methods
Unsubscribes from spin-element changes before disconnecting cached child providers.
public override void Disconnect()
Overrides:
Implements:
Gets the Value or RangeValue pattern provider when requested; otherwise uses the base provider.
Gets spinner-specific UI Automation properties, falling back to the base element provider for unhandled properties.
Navigates to the text box or down button for first-child and last-child requests, and otherwise uses the spinner service or base provider.
public override IRawElementProviderFragment Navigate(NavigateDirection direction)
The direction in which to navigate.
Returns:The matching child or related fragment, or null when no fragment is found.
Overrides:
Implements:
Gets the next sibling through the spinner service, falling back to the base provider.
public override IRawElementProviderFragment NavigateNextSibling(IRawElementProviderFragment child)
The child from which to navigate.
Returns:The next sibling fragment, or the base provider's result.
Overrides:
Implements:
Gets the previous sibling through the spinner service, falling back to the base provider.
public override IRawElementProviderFragment NavigatePreviousSibling(IRawElementProviderFragment child)
The child from which to navigate.
Returns:The previous sibling fragment, or the base provider's result.
Overrides:
Implements:
Focuses the spin element's text box on the owning control's UI thread.
public override void SetFocus()
Overrides:
Implements: