Hello
I try to use the RadPanelBar with a Binding as ItemSource, but get an unexpected result. Without binding I would use it like this:
That is no problem and looks exactly as expected. But as soon as I use it like this:
and set it's DataContext to a List of objects (in this case AttributeSet), it changes its behaviour! Now the header includes the whole content, and the content itself (the secont Label) is also displayd as Header.
Am I doing something wrong, or is this a bug?
Regards
Simon
I try to use the RadPanelBar with a Binding as ItemSource, but get an unexpected result. Without binding I would use it like this:
<telerik:RadPanelBar> |
<telerik:RadPanelBarItem> |
<telerik:RadPanelBarItem.Header> |
<Label Content="Header 1"/> |
</telerik:RadPanelBarItem.Header> |
<Label Content="Content 1"/> |
</telerik:RadPanelBarItem> |
</telerik:RadPanelBar> |
That is no problem and looks exactly as expected. But as soon as I use it like this:
<telerik:RadPanelBar Name="AttributeSetPanelBar" ItemsSource="{Binding}"> |
<telerik:RadPanelBar.Resources> |
<DataTemplate DataType="{x:Type wrp:AttributeSet}"> |
<telerik:RadPanelBarItem> |
<telerik:RadPanelBarItem.Header> |
<Label Content="{Binding Name}"/> |
</telerik:RadPanelBarItem.Header> |
<Label Content="Content"/> |
</telerik:RadPanelBarItem> |
</DataTemplate> |
</telerik:RadPanelBar.Resources> |
</telerik:RadPanelBar> |
Am I doing something wrong, or is this a bug?
Regards
Simon