tags:

views:

45

answers:

0

I'm creating a lookless control based on Selector in WPF with a Dependency Property named "ListItems". When SelectedItems is changed, I do:

// CollectionViewSource ListItems = ...
ListItems.Source = newSelectedItems;
ListItems.Refresh();

And In my control template I bind it to a listbox like this:

<ListBox ItemsSource="{TemplateBinding ListItems}"/>

But no items appear in my listbox.

I have also tried:

<ListBox ItemsSource="{Binding Source={TemplateBinding ListItems}}"/>

What am I missing here?