protected override string GetLocalizedControlTypeCore() { if (AutomationProperties.GetLocalizedControlType(Owner) is string localizedControlType && !string.IsNullOrEmpty(localizedControlType)) { return(localizedControlType); } return(base.GetLocalizedControlTypeCore()); }