Hi,
we're testing the breadcrumb control right now and would like to bind the Path property instead of using code behind (since we're using MVVM) however, even if that property already uses notify property changed, the breadcrumb is still not updating the path.
aside from this, we have several tree views and would like to update the itemsource for the control, but it isn't reflecting in the control as expected (a second click would reflect the new itemssource.
the data is okay if we
thanks!
we're testing the breadcrumb control right now and would like to bind the Path property instead of using code behind (since we're using MVVM) however, even if that property already uses notify property changed, the breadcrumb is still not updating the path.
aside from this, we have several tree views and would like to update the itemsource for the control, but it isn't reflecting in the control as expected (a second click would reflect the new itemssource.
the data is okay if we
private
ObservableCollection<TreeViewItems> items;
public
ObservableCollection<TreeViewItems> Items
{
get
{
return
items;
}
set
{
items = value;
OnPropertyChanged(
"Items"
);
}
}
private
string
currentPath =
""
;
public
string
CurrentPath
{
get
{
return
currentPath;
}
set
{
currentPath = value;
OnPropertyChanged(
"CurrentPath"
);
}
}
internal
void
OnSelectedMenuChanged(TreeViewItems tvi)
{
...some code...
this
.R = Util.CreateTreeView();
//returns an observable collection similar to the sample implementation
this
.CurrentPath = sb.ToString();
}
<
telerik:RadBreadcrumb
x:Name
=
"explorerBreadcrumb"
Path
=
"{Binding CurrentPath}"
Header
=
"{Binding R[0]}"
HeaderMemberPath
=
"CategoryName"
HierarchicalItemsSource
=
"SubCategories"
HierarchicalMemberPath
=
"CategoryName"
ItemsSource
=
"{Binding R[0].SubCategories}"
TextModePath
=
"CategoryName"
/>
thanks!