I tried to move my Grid Columns Content to a separate ResourceDictionary and it works for the first part the "GridViewDataColumn" not perfectly i expect
but
a) not for the GridViewCheckBoxColumn , do you have a suggestion how to do this ?
b) and 2nd i used the common "TextBox" for the GridViewDataColumn (child control) but which Control should i use if i want the Telerik Standard Control which is normaly used in the GridView ? if i add
<t:GridViewDataColumn Header="VALID" ...
it want work , vs designer tell me that it could not found it
thanks br
<telerik:GridViewDataColumn Header="XNAME" CellEditTemplate="{StaticResource ClaimListNameDataTemplate}" CellTemplate="{StaticResource ClaimListNameDataTemplate}"/>
<telerik:GridViewCheckBoxColumn Header="VALID" DataMemberBinding="{Binding IsValidYn, Mode=TwoWay}" AutoSelectOnEdit="True" EditTriggers="CellClick" Width="75*"
CellTemplate="{StaticResource ClaimListValidDataTemplate}" CellEditTemplate="{StaticResource ClaimListValidDataTemplate}"
>
<telerik:GridViewCheckBoxColumn.CellStyle >
<Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource CenterCheckBoxColumnCellStyle}">
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
</telerik:GridViewCheckBoxColumn.CellStyle>
</telerik:GridViewCheckBoxColumn>
IN RESOURCEDIRECTORY
<ResourceDictionary x:Class="Application.Views.ClaimListResourceDictionary"
xmlns:local="clr-namespace:Application.Views"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:t="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:tg="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
>
<DataTemplate x:Key="ClaimListNameDataTemplate" DataType="{x:Type local:ClaimList}">
<StackPanel Orientation="Vertical" Background="Brown">
<Image Height="50" Width="50" HorizontalAlignment="Center" Source="/GapJunctionApplication;component/Images/Refresh2.png"/>
<TextBox HorizontalAlignment="Stretch" BorderThickness="0" SelectionBrush="Green" BorderBrush="Black" Text="{Binding name_nam, Mode=TwoWay}" TextAlignment="Right"/>
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="ClaimListValidDataTemplate" DataType="{x:Type local:ClaimList}">
???
</DataTemplate>
</ResourceDictionary>