//A slight variation : we want ICs to only display their part number and not their full name public override void UpdateText() { base.UpdateText(); foreach (var textObject in Children.OfType <TextBlock>()) { if (textObject.Name == "_Model") { if (ComponentModel.IndexOf(' ') != -1) { textObject.Text = ComponentModel.Substring(0, ComponentModel.IndexOf(' ')); } else { textObject.Text = ComponentModel; } Util.DoEvents(); } } }