public static void SetSelectedItemsSource(DependencyObject element, IList value) { if (element == null) throw new ArgumentNullException("element"); element.SetValue(SelectedItemsSourceProperty, value); }