Hi,
I'm having a problem with setting the RadTreeViewItem's CheckState property through the ItemContainerStyle of the RadTreeView. Specifically, I receive an error message every time I try to edit the xaml in design mode with Blend (versions 3 or 4 RC) and nothing gets rendered on the design surfice. The message is:
"The member 'CheckState' is not recognized or is not accessible."
I managed to reproduce the problem with a stripped-down version of the xaml:
<Window x:Class="WpfApplication18.MainWindow" x:Name="Window" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" |
mc:Ignorable="d" |
Width="640" Height="480" |
xmlns:sys="clr-namespace:System;assembly=mscorlib"> |
<Grid> |
<telerikNavigation:RadTreeView IsOptionElementsEnabled="True"> |
<telerikNavigation:RadTreeView.Items> |
<sys:String>Item 1</sys:String> |
<sys:String>Item 2</sys:String> |
<sys:String>Item 3</sys:String> |
</telerikNavigation:RadTreeView.Items> |
<telerikNavigation:RadTreeView.ItemContainerStyle> |
<Style TargetType="{x:Type telerikNavigation:RadTreeViewItem}"> |
<Setter Property="CheckState" Value="On" /> <Setter Property="OptionType" Value="CheckList" /> |
</Style> |
</telerikNavigation:RadTreeView.ItemContainerStyle> |
</telerikNavigation:RadTreeView> |
</Grid> |
</Window> |
It's only the CheckState property that's causing the problem (the OptionType property from the sample works fine).
Sources on the internet suggest tha an internal exception in the property 'setter' might be causing such behavior but that's just a clue.
Do you have any idea how I can get it working in Blend ??