I am trying to create a custom filter tool for a group of texts
I have the following XAML http://pastebin.com/h41fjb9J and codebehind is http://pastebin.com/PTd48bJZ and my custom type is http://pastebin.com/LFnGynbz
What I dont understand is that if I have
<telerik:GridViewDataColumn
DataMemberBinding="{Binding Path=Checked}"/>
<telerik:GridViewDataColumn
IsReadOnly="True"
DataMemberBinding="{Binding Path=Text}"/>
Then it works but its ugly as I want to it look exactly like the
<CheckBox Content="{x:StaticExtension localization:SemenBucketTexts.SelectAll}" Click="SelectAll" />
above with no borders or headers
If I then try to create a custom celltemplate
<telerik:GridViewDataColumn>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox Checked="{Binding Path=Checked}" Content="{Binding Text}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
I get an exception
InnerException = {"Unable to cast object of type 'System.Reflection.RuntimeEventInfo' to type 'System.Reflection.MethodInfo'."}
I have the following XAML http://pastebin.com/h41fjb9J and codebehind is http://pastebin.com/PTd48bJZ and my custom type is http://pastebin.com/LFnGynbz
What I dont understand is that if I have
<telerik:GridViewDataColumn
DataMemberBinding="{Binding Path=Checked}"/>
<telerik:GridViewDataColumn
IsReadOnly="True"
DataMemberBinding="{Binding Path=Text}"/>
Then it works but its ugly as I want to it look exactly like the
<CheckBox Content="{x:StaticExtension localization:SemenBucketTexts.SelectAll}" Click="SelectAll" />
above with no borders or headers
If I then try to create a custom celltemplate
<telerik:GridViewDataColumn>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox Checked="{Binding Path=Checked}" Content="{Binding Text}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
I get an exception
InnerException = {"Unable to cast object of type 'System.Reflection.RuntimeEventInfo' to type 'System.Reflection.MethodInfo'."}