This question is locked. New answers and comments are not allowed.
Hi Telerik,
I have seen the other posting on same subject. But it is not working. Here is the code that I tried.
I have seen the other posting on same subject. But it is not working. Here is the code that I tried.
// property added to CollectionDataItemViewModel
private bool isExpanded;
public bool IsExpanded
{
get
{
return this.isExpanded;
}
set
{
if (this.isExpanded != value)
{
this.isExpanded = value;
this.OnPropertyChanged("IsExpanded");
}
}
}
XAML:
<
telerikPrimitives:RadExpanderControl
ExpandableContent
=
"{Binding}"
Content
=
"{Binding}"
IsExpanded
=
"{Binding IsExpanded}"
BorderBrush
=
"{StaticResource PhoneSubtleBrush}"
>
... ... ... ... ...
private void rdlbMain_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.RemovedItems.Count > 0)
{
ViewModels.CollectionDataItemViewModel item = (ViewModels.CollectionDataItemViewModel)e.RemovedItems[0];
item.IsExpanded = false;
}
}