This question is locked. New answers and comments are not allowed.
Hi folks,
I have the following problem:
I checked several blogs and forum posts, nothing really helped me.
Thanks a lot!
- Tobias
UPDATE
I solved the first problem with the following changes:
So, I need a way how to set diffrent template - because only delete items should be strikeouted.
SOLUTION
Hi,
I found a solution. You need a TreeViewItemTemplateSelector and a HierarchicalDataTemplate incl. Code-Behind files.
It works! Yay.
- Tobias
I have the following problem:
- I have a RadTreeViewItemTemplate
- I want to set the text decoration to strikethrough
- I want to use a template and not a new control
- Please help. :)
I checked several blogs and forum posts, nothing really helped me.
Thanks a lot!
- Tobias
<telerik:RadTreeView.ItemTemplate> <telerik:HierarchicalDataTemplate ItemsSource="{Binding Children}"> <Grid> <TextBlock x:Name="MyText" Text="{Binding Name}"/> </Grid> </telerik:HierarchicalDataTemplate></telerik:RadTreeView.ItemTemplate>I solved the first problem with the following changes:
<Grid><TextBlock Text="{Binding Name}"/><Rectangle Height="1" VerticalAlignment="Center" Fill="Black" /></Grid>So, I need a way how to set diffrent template - because only delete items should be strikeouted.
SOLUTION
Hi,
I found a solution. You need a TreeViewItemTemplateSelector and a HierarchicalDataTemplate incl. Code-Behind files.
It works! Yay.
- Tobias