Cannot bind the CollectionViewSource
DocProps is a public property
public ObservableCollection<DocProp> DocProps1
DataContext is self
DataContext="{Binding RelativeSource={RelativeSource self}}"
This works
<ListBox Grid.Row="0" Grid.Column="0" ItemsSource="{Binding Path=DocProps1}">
I cannot wire up a CollectionViewSource to sort This does not even get DocProps1
<ListBox Grid.Row="0" Grid.Column="0">
<ListBox.ItemsSource>
<Binding>
<Binding.Source>
<CollectionViewSource Source="{Binding Path=DocProps1}">
<CollectionViewSource.SortDescriptions>
<scm:SortDescription PropertyName="Name" />
</CollectionViewSource.SortDescriptions>
</CollectionViewSource>
</Binding.Source>
</Binding>
</ListBox.ItemsSource>
How do I bind a CollectionViewSource to a public property?
Thanks