It looks like I have a problem with my multiply-connected interface.
Scenario:
I have a window with two datepickers and a listview. Listliew contains some data-related items called "records." A record has a property called "date."
I just want my list to display entries whose date is between two date dates.
My xaml code to bind a list to records and dates:
<ListView.ItemsSource> <MultiBinding Converter="{StaticResource EntriesFilterConv}" UpdateSourceTrigger="PropertyChanged"> <Binding Path="Entries" UpdateSourceTrigger="PropertyChanged"/> <Binding ElementName="EntryFromDate" Path="SelectedDate" UpdateSourceTrigger="PropertyChanged"/> <Binding ElementName="EntryToDate" Path="SelectedDate" UpdateSourceTrigger="PropertyChanged"/> </MultiBinding> </ListView.ItemsSource>
However, this does not work. My converter is called when SelectedDate changes, but it is never called when a record changes.
With normal data binding, for example:
<ListView ItemsSource="{Binding Entries}"> ... </ListView>
The list is usually updated. Any idea?
source share