protected override object GetProviderPropertyValue (int propertyId)
{
if (propertyId == AutomationElementIdentifiers.ControlTypeProperty.Id)
return ControlType.Window.Id;
else if (propertyId == AutomationElementIdentifiers.LabeledByProperty.Id)
return null;
else if (propertyId == AutomationElementIdentifiers.NameProperty.Id)
return Control.Text;
else if (propertyId == AutomationElementIdentifiers.HasKeyboardFocusProperty.Id)
return false;
else
return base.GetProviderPropertyValue (propertyId);
}