protected override object GetProviderPropertyValue (int propertyId)
{
if (propertyId == AutomationElementIdentifiers.ControlTypeProperty.Id)
return ControlType.List.Id;
else if (propertyId == AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id)
return true;
else if (propertyId == AutomationElementIdentifiers.NameProperty.Id) {
if (string.IsNullOrEmpty (listboxControl.AccessibleName))
return Helper.StripAmpersands (listboxControl.Text);
else
return listboxControl.AccessibleName;
} else
return base.GetProviderPropertyValue (propertyId);
}