void searchControl_Loaded(object sender, RoutedEventArgs e)
{
if (this.EntityTypeTitle == null)
this.EntityTypeTitle = searchControl.EntityType.NicePluralName();
if (this.QueryNameTitle == null)
this.QueryNameTitle = QueryUtils.GetNiceName(QueryName);
if (this.QueryNameTitle.StartsWith(this.EntityTypeTitle))
this.QueryNameTitle = this.QueryNameTitle.Substring(this.EntityTypeTitle.Length).Trim();
else
this.QueryNameTitle = "- " + this.QueryNameTitle;
AutomationProperties.SetName(this, QueryUtils.GetKey(QueryName));
}