Hi telerik,
The users of our MVVM application would like items to be 'marked' in various ways; a combination of italics and bold is desired.
Currently, we style the items as shown below, reacting to changes in IsSelected.
The other thing we would like to react on is whether the treeitem's editor (in another window) is given focus, but of course there is no relevant RadTreeViewItem property to bind to - how would you go about this? Can we intercept the styling somehow and for each item - in code-as-opposed-to-markup - apply the style as we see fit?
Thanks for any input,
Anders, Denmark
The users of our MVVM application would like items to be 'marked' in various ways; a combination of italics and bold is desired.
Currently, we style the items as shown below, reacting to changes in IsSelected.
The other thing we would like to react on is whether the treeitem's editor (in another window) is given focus, but of course there is no relevant RadTreeViewItem property to bind to - how would you go about this? Can we intercept the styling somehow and for each item - in code-as-opposed-to-markup - apply the style as we see fit?
Thanks for any input,
Anders, Denmark
<Controls:RadTreeView.ItemContainerStyle>
<Style TargetType="{x:Type Controls:RadTreeViewItem}">
<Setter Property="WorkspaceExplorer:MouseDoubleClickBehavior.MouseDoubleClick" Value="{Binding ActivateItemCommand}" />
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="FontWeight" Value="Normal" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="Bold" />
</Trigger>
</Style.Triggers>
</Style>
</Controls:RadTreeView.ItemContainerStyle>