This question is locked. New answers and comments are not allowed.
Hello,
I have on my page a RadTransition control bind to a CollectionViewSource, which source is an ObservableCollection of ViewModels(VM) in a MVVM implementation. I use PRISM Data Template to select the right control base on the VM currently selected, here's some code snippets:
Now I tried to add a RadBreadCrumb control to the interface that will allow navigate through the hierarchy. Based on the RadBreadcrumb Data binding example from the help, I change my items to be like the ExplorerItem. But now I've got this error when I try to add children to my Root item:
Is there a way to bind the breadcrumb to a flat list (as in my ObservableCollection)? Or bind my RadTransition to a HierarchicalMemberSource?
Any help will be appreciated (I'm currently trying to reproduce this issue in an empty project to post it here).
Thanks
I have on my page a RadTransition control bind to a CollectionViewSource, which source is an ObservableCollection of ViewModels(VM) in a MVVM implementation. I use PRISM Data Template to select the right control base on the VM currently selected, here's some code snippets:
<UserControl.Resources> <DataTemplate x:Key="SelectorDataTemplate" > <prism:DataTemplateSelector Content="{Binding}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"> <prism:DataTemplateSelector.Resources> <DataTemplate x:Key="FirstViewModel"> <controls:WebsDisplayControl DataContext="{Binding}" /> </DataTemplate> <DataTemplate x:Key="SecondViewModel"> <controls:WebsChildrenDisplayControl DataContext="{Binding}"/> </DataTemplate> </prism:DataTemplateSelector.Resources> </prism:DataTemplateSelector> </DataTemplate> </UserControl.Resources><telerik:RadTransitionControl x:Name="navigatorMainContent" Grid.Row="1" Content="{Binding ViewSource.View.CurrentItem}" ContentTemplate="{StaticResource SelectorDataTemplate}" Padding="4"></telerik:RadTransitionControl>Now I tried to add a RadBreadCrumb control to the interface that will allow navigate through the hierarchy. Based on the RadBreadcrumb Data binding example from the help, I change my items to be like the ExplorerItem. But now I've got this error when I try to add children to my Root item:
You can't use both ItemTemplate and HierarchicalMemberSource.Is there a way to bind the breadcrumb to a flat list (as in my ObservableCollection)? Or bind my RadTransition to a HierarchicalMemberSource?
Any help will be appreciated (I'm currently trying to reproduce this issue in an empty project to post it here).
Thanks