I'm trying to use the RadPanelBar control for a binding source which contains a list of lists. I mean I have an object containing a list of sections, and each section contains a list of commands.
I'm creating the control using this XAML:
<
telerikNavigation:RadPanelBar ItemsSource="{Binding Path=Sections}"
ItemTemplate="{StaticResource SectionsTemplate}"/>
And I have the two following templates:
<
DataTemplate x:Key="CommandsTemplate">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Margin="2,6">
<Hyperlink Command="{Binding Path=Command}">
<TextBlock Text="{Binding Path=DisplayName}" />
</Hyperlink>
</TextBlock>
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="SectionsTemplate">
<telerikNavigation:RadPanelBarItem ItemsSource="{Binding Path=Commands}" ItemTemplate="{StaticResource CommandsTemplate}">
<telerikNavigation:RadPanelBarItem.Header>
<TextBlock Text="{Binding Path=SectionName}" />
</telerikNavigation:RadPanelBarItem.Header>
</telerikNavigation:RadPanelBarItem>
</DataTemplate>
The result is that there is like an other control in the sections bars, and I have to click on it (the arrow is not working) to see the list of commands, but instead of the commands being simple links, they appear as a RadPanelBar, with an arrow on the right which is doing nothing.
What am I doing wrong?
Best regards,
Daniel Varrin