protected override AccessibleObject CreateAccessibilityInstance() { if (_accessibleObject == null) { _accessibleObject = (LightweightControlAccessibleObject)base.CreateAccessibilityInstance(); // tabs are selectable role _accessibleObject.SetAccessibleStateOverride(TabEntry.IsSelected ? AccessibleStates.Selectable | AccessibleStates.Selected : AccessibleStates.Selectable); } return(_accessibleObject); }
protected override AccessibleObject CreateAccessibilityInstance() { if (_accessibleObject == null) { _accessibleObject = (LightweightControlAccessibleObject)base.CreateAccessibilityInstance(); // tabs are selectable role _accessibleObject.SetAccessibleStateOverride(TabEntry.IsSelected ? AccessibleStates.Selectable | AccessibleStates.Selected : AccessibleStates.Selectable); } return _accessibleObject; }