I am able to get the XAML that gives me the header for each item in the list, but I am unable to get the header to expand and show the other data I want it to display. Second link shows how to do this with a bunch of work, custom control, etc...
Is there a simple way to do this? I want to display very little info on the header from the object/class but display quite a bit more when it's expanded, and all the data comes from the same instance of the object.
Any help would be greatly appreciated.
Wayne
I have a class, that I am adding many to the list and at run time I'm doing the following:
radPanelBar.ItemsSource =
items;
and I have the following XAML for the RadPanelBar (most pulled from following two links)
http://www.telerik.com/community/forums/silverlight/panelbar/how-to-set-radpanelbaritem-properties-when-data-binding.aspx
http://www.telerik.com/community/forums/silverlight/panelbar/radpanelbar-itemstemplate-issue.aspx
<Border CornerRadius="5" HorizontalAlignment="Center">
<Border.Resources>
<DataTemplate x:Key="RadPanelBarItemTemplate">
<StackPanel Orientation="Horizontal" Margin="5">
<TextBlock Text="{Binding SearchItem.OriginCity}" Width="75" />
</StackPanel>
</DataTemplate>
</Border.Resources>
<StackPanel Orientation="Horizontal" Margin="10">
<Grid VerticalAlignment="Stretch">
<telerikNavigation:RadPanelBar VerticalAlignment="Stretch" x:Name="radPanelBar" Width="250" Visibility="Visible">
<telerikNavigation:RadPanelBar.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding SearchItem.OriginCity}" Width="75" />
</DataTemplate>
</telerikNavigation:RadPanelBar.ItemTemplate>
</telerikNavigation:RadPanelBar>
</Grid>
</StackPanel>
</Border>