I am using the Telerik RadGridView control with Silverlight 4.
I need to use two lines for some column headers, so I can fit in long header captions.
To to this, I am trying to set some attributes for the Header, so the Height property is "40" and the TextWrapping property is "Wrap".
I have searched the samples in this section of the forum and have come up with this:
<
UserControl x:Class="Telerik_GridView.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns
:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
d:DesignWidth="700" d:DesignHeight="400">
<telerik:RadGridView x:Name="radGridView1" AutoGenerateColumns="False" ShowGroupPanel="False">
<telerik:RadGridView.HeaderRowStyle>
<Style TargetType="telerik:GridViewHeaderRow">
<Setter Property="Height" Value="40" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
</telerik:RadGridView.HeaderRowStyle>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Data 1" Width="80" DataMemberBinding="{Binding Path=Data1}" />
<telerik:GridViewDataColumn Header="Data 2 Long Header" Width="80" DataMemberBinding="{Binding Path=Data2}" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</
UserControl>
It compiles successfully, but generates an error of "Xaml Parse Exception", "Failed to create a 'System.Type' from the text 'telerik:GridViewHeaderRow'.
Could you please show me how to increase the height of the column headers and set the text to wrapping?
Thank you in advance for your help.
John