This question is locked. New answers and comments are not allowed.
Hi.
I have a DataBoundListBox:
My itemtemplate has some binded properties with converters like:
If in my viewModel I modify the ObservableCollection Data, and set one of the items in Data to Data[0].isFavorite = true, then i call RaisePropertyChange("Data") and the listbox item isnt refresed reflecting my change. This cahnge only gets refelcted if I scroll down and lose the item from the screen. Next I scroll up and the item reappears modified correctly.
Is there anyway I can force item repaint? I think the item isnt refreshed because it is already in realized items and the controls does not repaint it.
I have a DataBoundListBox:
<
telerikPrimitives:RadDataBoundListBox
x:Name
=
"ListBox"
ItemsSource
=
"{Binding Data}"
IsSynchronizedWithCurrentItem
=
"False"
EmptyContentDisplayMode
=
"DataSourceEmpty"
ListHeaderContent
=
"{Binding}"
ListFooterContent
=
"{Binding}"
DataVirtualizationMode
=
"OnDemandAutomatic"
DataRequested
=
"ListBox_OnDataRequested"
telerikCore:InteractionEffectManager.IsInteractionEnabled
=
"True"
ItemTap
=
"ListBoxTopic_OnItemTap"
SelectedItem
=
"{Binding SelectedDataItem}"
SelectionChanged
=
"ListBox_OnSelectionChanged"
IsAsyncBalanceEnabled
=
"True"
AsyncBalanceMode
=
"FillViewportFirst"
>
My itemtemplate has some binded properties with converters like:
<
Border
Margin
=
"0,0,0,0"
VerticalAlignment
=
"Bottom"
BorderThickness
=
"0"
Background
=
"{Binding isFavorite, Converter={StaticResource booleanToAccentBrushConverter}, ConverterParameter=DarkGray}"
Visibility
=
"{Binding number, Converter={StaticResource booleanToVisibilityConverter}}"
>
If in my viewModel I modify the ObservableCollection Data, and set one of the items in Data to Data[0].isFavorite = true, then i call RaisePropertyChange("Data") and the listbox item isnt refresed reflecting my change. This cahnge only gets refelcted if I scroll down and lose the item from the screen. Next I scroll up and the item reappears modified correctly.
Is there anyway I can force item repaint? I think the item isnt refreshed because it is already in realized items and the controls does not repaint it.