Skip to content

Commit 389d97c

Browse files
committed
Update MultiSelectSearchComboBoxExample.xaml.cs
1 parent 66e2cc4 commit 389d97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WPFDevelopers.Samples.Shared/ExampleViews/MultiSelectSearchComboBoxExample.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private void MultiSelectSearchComboBoxExample_Loaded(object sender, RoutedEventA
3131
list2.Add(new UserInfo() { ID = "2", Name = "PPOI.xu" });
3232
list2.Add(new UserInfo() { ID = "3", Name = "josh.peng" });
3333
MyMultiSelectionSearchComboBox3.ItemsSource = list2;
34-
34+
MyMultiSelectionSearchComboBox3.SelectedItems = list2.Where(x => x.ID == "1" || x.ID == "3").ToList();
3535
}
3636

3737
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)

0 commit comments

Comments
 (0)