This question is locked. New answers and comments are not allowed.
I'm trying to binde my ListPicker to an object that contains 2 collection , 1 for the values and one for the selected values
And XAML
But this seams not to work as I do something like SelectedValues.Clear();
but my listpicker still shows previous selections
public
ObservableCollection<CategoryFilterValue> SelectedValues
{
get
{
return
_selectedValues; }
set
{
if
(value != _selectedValues)
{
_selectedValues = value;
NotifyPropertyChanged(
"SelectedValues"
);
}
}
}
private
ObservableCollection<CategoryFilterValue> _Values;
public
ObservableCollection<CategoryFilterValue> Values
{
get
{
return
_Values; }
set
{
if
(value != _Values)
{
_Values = value;
NotifyPropertyChanged(
"Values"
);
}
}
}
And XAML
<
telerikInput:RadListPicker
Header
=
"{Binding Text}"
ItemsSource
=
"{Binding Values}"
Width
=
"460"
x:Name
=
"radPicker"
SelectionMode
=
"Multiple"
OkButtonIconUri
=
"/Toolkit.Content/appbar.check.rest.png"
CancelButtonIconUri
=
"/Toolkit.Content/appbar.close.rest.png"
SelectedItem
=
"{Binding SelectedValues,ElementName=radPicker,Mode=TwoWay}"
SelectionChanged
=
"radListPicker_SelectionChanged"
NoSelectionContent
=
" "
>
<
telerikInput:RadListPicker.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
>
<
TextBlock
Text
=
"{Binding Text}"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerikInput:RadListPicker.ItemTemplate
>
</
telerikInput:RadListPicker
>
But this seams not to work as I do something like SelectedValues.Clear();
but my listpicker still shows previous selections
Any thoughs?