We have implement the listview with the following code:
If
ObservableCollection Programs changes, then listview update right way.
However, if only the display value in the listitem changes, then Listview does not update
<ListView
FontSize="28"
IsSynchronizedWithCurrentItem="True"
x:Name="listViewAllPrograms"
Width="Auto"
SelectionMode="Single"
AlternationCount="2"
Grid.Row="1"
Grid.Column="0"
Margin="5,5,5,5"
ItemsSource="{Binding Path=Programs, UpdateSourceTrigger=PropertyChanged}"
SelectedIndex="{Binding Path=SelectProgramIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
When we detect display value inside ObservableCollection Programs has been changed, we call
RaisePropertyChanged(
"Programs")
However, it does not update listview.
How can we update/refresh listview when the Programs counter does not change and display value inside the Programs get changed?
thx!