I have a treeview with tri-state mode enabled bound to a hierachical data source. When I check some children of a node (but not all), a red adorner border surrounds the whole RadTreeViewItem. A screenshot is attached.
How do I disable this border?
RadTreeView XAML:
HierarchicalDataTemplate:
RadTreeViewItemStyle:
Thank you,
James
How do I disable this border?
RadTreeView XAML:
<telerik:RadTreeView telerik:AnimationManager.IsAnimationEnabled="False" Grid.Row="0" ItemsSource="{Binding ElementName=ElementRoot, Path=RoleList}" SelectedItem="{Binding ElementName=ElementRoot, Path=SelectedRole, Mode=TwoWay}" ItemContainerStyle="{StaticResource ApplicationTreeViewStyle}" IsOptionElementsEnabled="True" ItemsOptionListType="CheckList" IsTriStateMode="True" DropExpandDelay="00:00:00" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" />HierarchicalDataTemplate:
<HierarchicalDataTemplate DataType="{x:Type Models:Role}" ItemsSource="{Binding Children}"> <TextBlock Text="{Binding DisplayName}" /></HierarchicalDataTemplate>RadTreeViewItemStyle:
<Style x:Key="ApplicationTreeViewStyle" TargetType="{x:Type telerik:RadTreeViewItem}"> <Setter Property="IsSelected" Value="{Binding Path=Selected, Mode=TwoWay}"/> <Setter Property="CheckState" Value="{Binding Path=Checked, Mode=TwoWay, Converter={StaticResource Bool2ToggleConverter}}"/> <Setter Property="IsExpanded" Value="{Binding Path=Expanded, Mode=TwoWay}" /></Style>Thank you,
James