public static void SelectItem(ApplicationModel.ListBoxNodeBase listBox, string pattern) { var item = listBox.Items.FirstOrDefault(x => x.Text.Equals(pattern)); listBox.Select(item); }