|
| 1 | +--- |
| 2 | +title: UI Automation Support (UI Accessibility) |
| 3 | +page_title: UI Automation Support (UI Accessibility) - RadSpinEditor |
| 4 | +description: UI Automation Support (UI Accessibility) for RadSpinEditor. |
| 5 | +slug: winforms/editors/spineditor-ui-automation |
| 6 | +tags: spineditor,ui,automation |
| 7 | +published: True |
| 8 | +position: 10 |
| 9 | +--- |
| 10 | + |
| 11 | +# UI Automation Support |
| 12 | + |
| 13 | +With the __Q2 2025__ version of our controls, RadSpinEditor supports UI Automation. The current implementation of UI Automation for RadSpinEditor is similar to the MS WinForms Edit Control Type implementation with some extended functionality. The main goal of this implementation is to ensure compliance with accessibility standards and to provide a common practice for automated testing. |
| 14 | + |
| 15 | +This functionality is enabled by default. To disable it, you can set the __EnableUIAutomation__ property to false. |
| 16 | + |
| 17 | + |
| 18 | +````C# |
| 19 | + |
| 20 | +this.radSpinEditor1.EnableUIAutomation = false; |
| 21 | + |
| 22 | +```` |
| 23 | +````VB.NET |
| 24 | + |
| 25 | +Me.RadSpinEditor1.EnableUIAutomation = False |
| 26 | + |
| 27 | +```` |
| 28 | + |
| 29 | +<!-- |
| 30 | + |
| 31 | +--> |
| 32 | + |
| 33 | +## Relevant Properties |
| 34 | + |
| 35 | +The table below outlines the __UI Automation__ properties most important for understanding and interacting with RadButton control. |
| 36 | + |
| 37 | +* AutomationElementIdentifiers.AutomationIdProperty.Id |
| 38 | +* AutomationElementIdentifiers.BoundingRectangleProperty.Id |
| 39 | +* AutomationElementIdentifiers.ControlTypeProperty.Id |
| 40 | +* AutomationElementIdentifiers.LocalizedControlTypeProperty.Id => "spinner" |
| 41 | +* AutomationElementIdentifiers.HelpTextProperty.Id |
| 42 | +* AutomationElementIdentifiers.IsContentElementProperty.Id |
| 43 | +* AutomationElementIdentifiers.IsControlElementProperty.Id |
| 44 | +* AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id |
| 45 | +* AutomationElementIdentifiers.LabeledByProperty.Id |
| 46 | +* AutomationElementIdentifiers.NameProperty.Id |
| 47 | +* AutomationElementIdentifiers.IsRangeValuePatternAvailableProperty.Id |
| 48 | +* AutomationElementIdentifiers.IsValuePatternAvailableProperty.Id |
| 49 | + |
| 50 | +## Supported Control Patterns |
| 51 | + |
| 52 | +The following section outlines the supported automation patterns for the __RadSpinEditor__ control and its constituent elements. |
| 53 | + |
| 54 | +* [Text Pattern](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.textpattern?view=windowsdesktop-9.0) |
| 55 | +* [Value Pattern](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.valuepattern?view=windowsdesktop-9.0) |
| 56 | +* [Range Value Pattern](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.rangevaluepattern?view=windowsdesktop-9.0) |
| 57 | + |
| 58 | +## Events |
| 59 | + |
| 60 | +This section list the events raised by the RadSpinEditor control. |
| 61 | + |
| 62 | +* __RadSpinElement.MinValue property change__: Raises the [UIA RangeValuePatternIdentifiers.MinimumProperty](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.rangevaluepattern.minimumproperty?view=windowsdesktop-9.0) automation property change. |
| 63 | + |
| 64 | +* __RadSpinElement.MaxValue property change__: Raises the [UIA RangeValuePatternIdentifiers.MaximumProperty](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.rangevaluepattern.maximumproperty?view=windowsdesktop-9.0) automation property change. |
| 65 | + |
| 66 | +* __ValueChanged event: Raises the |
| 67 | + |
| 68 | + * [UIA ValuePatternIdentifiers.ValueProperty](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.valuepattern.valueproperty?view=windowsdesktop-9.0) automation property changed. |
| 69 | + * UIA RangeValuePatternIdentifiers.ValueProperty](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.rangevaluepattern.valueproperty?view=windowsdesktop-9.0) |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
0 commit comments