This question is locked. New answers and comments are not allowed.
I am using Silverlight 5, and Telerik version 2012 Q2.
I have the following code:
My first problem is that my custom control - which is described in UserControl.Resources named ContentTemplate, sits in the header of my RadPanelBar. I want it to sit in the items part, and I want to describe my HeaderTemplate, can anyone help?
I have the following code:
<UserControl.Resources> <DataTemplate x:Key="ContentTemplate"> <ScrollViewer HorizontalScrollBarVisibility="Auto"> <ItemsControl x:Name="Test" ItemsSource="{Binding Items}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel Orientation="Vertical" Height="220"> </toolkit:WrapPanel> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <controls:ParameterItem Style="{StaticResource ParamItem}" Description="Description" ParamValue="Value"/> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </ScrollViewer> </DataTemplate></UserControl.Resources><telerik:RadPanelBar Grid.Row="1" Margin="2" ItemsSource="{Binding Parameters}" HorizontalAlignment="Left" ItemTemplate="{StaticResource ContentTemplate}" Width="Auto"></telerik:RadPanelBar>My first problem is that my custom control - which is described in UserControl.Resources named ContentTemplate, sits in the header of my RadPanelBar. I want it to sit in the items part, and I want to describe my HeaderTemplate, can anyone help?