66 references to AutomationProperties
Microsoft.Maui.Controls (46)
AutomationProperties.cs (5)
11 public static readonly BindableProperty HelpTextProperty = BindableProperty.Create("HelpText", typeof(string), typeof(AutomationProperties), default(string)); 14 public static readonly BindableProperty IsInAccessibleTreeProperty = BindableProperty.Create("IsInAccessibleTree", typeof(bool?), typeof(AutomationProperties), null); 17 public static readonly BindableProperty ExcludedWithChildrenProperty = BindableProperty.Create("ExcludedWithChildren", typeof(bool?), typeof(AutomationProperties), null); 21 public static readonly BindableProperty LabeledByProperty = BindableProperty.Create("LabeledBy", typeof(VisualElement), typeof(AutomationProperties), default(VisualElement)); 25 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(AutomationProperties), default(string));
Compatibility\Handlers\ListView\iOS\CellRenderer.cs (8)
67 if (cell.IsSet(AutomationProperties.IsInAccessibleTreeProperty)) 68 tableViewCell.IsAccessibilityElement = cell.GetValue(AutomationProperties.IsInAccessibleTreeProperty).Equals(true); 72 if (cell.IsSet(AutomationProperties.ExcludedWithChildrenProperty)) 73 tableViewCell.AccessibilityElementsHidden = cell.GetValue(AutomationProperties.ExcludedWithChildrenProperty).Equals(true); 78 if (cell.IsSet(AutomationProperties.NameProperty)) 79 tableViewCell.AccessibilityLabel = cell.GetValue(AutomationProperties.NameProperty).ToString(); 83 if (cell.IsSet(AutomationProperties.HelpTextProperty)) 84 tableViewCell.AccessibilityHint = cell.GetValue(AutomationProperties.HelpTextProperty).ToString();
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (4)
1006 uIBarButtonItem.AccessibilityHint = (string)element.GetValue(AutomationProperties.HelpTextProperty) ?? _defaultAccessibilityHint; 1019 uIBarButtonItem.AccessibilityLabel = (string)element.GetValue(AutomationProperties.NameProperty) ?? _defaultAccessibilityLabel; 1031 uIBarButtonItem.IsAccessibilityElement = (bool)((bool?)element.GetValue(AutomationProperties.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement); 1042 uIBarButtonItem.AccessibilityElementsHidden = (bool)((bool?)element.GetValue(AutomationProperties.ExcludedWithChildrenProperty) ?? _defaultAccessibilityElementsHidden);
Compatibility\Handlers\VisualElementRenderer.cs (1)
36 [AutomationProperties.IsInAccessibleTreeProperty.PropertyName] = MapAutomationPropertiesIsInAccessibleTree,
Compatibility\iOS\Extensions\AccessibilityExtensions.cs (8)
40 Control.AccessibilityHint = (string)Element.GetValue(AutomationProperties.HelpTextProperty) ?? _defaultAccessibilityHint; 63 Control.AccessibilityLabel = (string)Element.GetValue(AutomationProperties.NameProperty) ?? _defaultAccessibilityLabel; 86 Control.AccessibilityHint = (string)Element.GetValue(AutomationProperties.HelpTextProperty) ?? _defaultAccessibilityHint; 121 Control.AccessibilityLabel = (string)Element.GetValue(AutomationProperties.NameProperty) ?? _defaultAccessibilityLabel; 133 if (!Element.IsSet(AutomationProperties.IsInAccessibleTreeProperty)) 150 Control.IsAccessibilityElement = (bool)((bool?)Element.GetValue(AutomationProperties.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement); 160 if (!Element.IsSet(AutomationProperties.ExcludedWithChildrenProperty)) 168 Control.AccessibilityElementsHidden = (bool)((bool?)Element.GetValue(AutomationProperties.ExcludedWithChildrenProperty) ?? _defaultAccessibilityElementsHidden);
Compatibility\iOS\Extensions\ToolbarItemExtensions.cs (4)
92 else if (e.PropertyName == AutomationProperties.HelpTextProperty.PropertyName) 94 else if (e.PropertyName == AutomationProperties.NameProperty.PropertyName) 188 else if (e.PropertyName == AutomationProperties.HelpTextProperty.PropertyName) 190 else if (e.PropertyName == AutomationProperties.NameProperty.PropertyName)
Element\Element.iOS.cs (4)
14 if (!element.IsSet(AutomationProperties.IsInAccessibleTreeProperty)) 30 Control.IsAccessibilityElement = (bool)((bool?)element.GetValue(AutomationProperties.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement); 35 if (!view.IsSet(AutomationProperties.ExcludedWithChildrenProperty)) 41 Control.AccessibilityElementsHidden = (bool)((bool?)view.GetValue(AutomationProperties.ExcludedWithChildrenProperty) ?? _defaultAccessibilityElementsHidden);
Element\Element.Mapper.cs (2)
13 ViewHandler.ViewMapper.ReplaceMapping<Maui.IElement, IElementHandler>(AutomationProperties.IsInAccessibleTreeProperty.PropertyName, MapAutomationPropertiesIsInAccessibleTree); 14 ViewHandler.ViewMapper.ReplaceMapping<Maui.IElement, IElementHandler>(AutomationProperties.ExcludedWithChildrenProperty.PropertyName, MapAutomationPropertiesExcludedWithChildren);
SemanticProperties.cs (4)
54 AutomationProperties.NameProperty, 55 AutomationProperties.LabeledByProperty, 56 AutomationProperties.HelpTextProperty, 58 AutomationProperties.IsInAccessibleTreeProperty,
Shell\SearchHandler.cs (6)
728 AutomationProperties.SetName(queryIcon, queryIconName); 731 AutomationProperties.SetHelpText(queryIcon, queryIconHelpText); 739 AutomationProperties.SetName(clearIcon, clearIconName); 742 AutomationProperties.SetHelpText(clearIcon, clearIconHelpText); 750 AutomationProperties.SetName(clearPlaceholderIcon, clearPlaceholderName); 753 AutomationProperties.SetHelpText(clearPlaceholderIcon, clearPlacholderHelpText);
Microsoft.Maui.Controls.Compatibility (20)
iOS\Cells\CellRenderer.cs (8)
48 if (cell.IsSet(AutomationProperties.IsInAccessibleTreeProperty)) 49 tableViewCell.IsAccessibilityElement = cell.GetValue(AutomationProperties.IsInAccessibleTreeProperty).Equals(true); 53 if (cell.IsSet(AutomationProperties.ExcludedWithChildrenProperty)) 54 tableViewCell.AccessibilityElementsHidden = cell.GetValue(AutomationProperties.ExcludedWithChildrenProperty).Equals(true); 58 if (cell.IsSet(AutomationProperties.NameProperty)) 59 tableViewCell.AccessibilityLabel = cell.GetValue(AutomationProperties.NameProperty).ToString(); 63 if (cell.IsSet(AutomationProperties.HelpTextProperty)) 64 tableViewCell.AccessibilityHint = cell.GetValue(AutomationProperties.HelpTextProperty).ToString();
iOS\Renderers\ButtonRenderer.cs (1)
155 var elemValue = (string)Element?.GetValue(AutomationProperties.NameProperty);
iOS\Renderers\CheckBoxRendererBase.cs (1)
37 var elemValue = (string)Element?.GetValue(AutomationProperties.NameProperty);
iOS\Renderers\ImageButtonRenderer.cs (1)
136 var elemValue = (string)Element?.GetValue(AutomationProperties.NameProperty);
iOS\Renderers\LabelRenderer.cs (1)
316 var elemValue = (string)Element?.GetValue(AutomationProperties.NameProperty);
iOS\Renderers\NavigationRenderer.cs (4)
873 uIBarButtonItem.AccessibilityHint = (string)element.GetValue(AutomationProperties.HelpTextProperty) ?? _defaultAccessibilityHint; 884 uIBarButtonItem.AccessibilityLabel = (string)element.GetValue(AutomationProperties.NameProperty) ?? _defaultAccessibilityLabel; 895 uIBarButtonItem.IsAccessibilityElement = (bool)((bool?)element.GetValue(AutomationProperties.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement); 906 uIBarButtonItem.AccessibilityElementsHidden = (bool)((bool?)element.GetValue(AutomationProperties.ExcludedWithChildrenProperty) ?? _defaultAccessibilityElementsHidden);
iOS\VisualElementRenderer.cs (4)
341 else if (e.PropertyName == AutomationProperties.HelpTextProperty.PropertyName) 343 else if (e.PropertyName == AutomationProperties.NameProperty.PropertyName) 345 else if (e.PropertyName == AutomationProperties.IsInAccessibleTreeProperty.PropertyName) 347 else if (e.PropertyName == AutomationProperties.ExcludedWithChildrenProperty.PropertyName)