Hello everyone,
I have a treeview:
<TreeView Grid.ColumnSpan="2" Margin="5" Background="LightYellow"
ItemTemplate="{DynamicResource AccountsTreeViewItemTemplate}"
x:Name="treeView1" FontFamily="Cairo" FontSize="16"/>
And here is the template:
<HierarchicalDataTemplate x:Key="AccountsTreeViewItemTemplate" ItemsSource="{Binding Children}" DataType="{x:Type local:AccountHierarchy}" >
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Name}" Grid.Column="1" />
<TextBlock Text="{Binding Id}" />
</Grid>
</HierarchicalDataTemplate>
I am currently using Blend for VS 2022, version 17.0.5
In a previous version several years age, I remember doing so by editing current template ,
but now that option is disabled despite the template is assigned ..
I don't know if I am missing something or if there is a bug in blend?
(The template is working as it is, but I need to edit it visually in the designer)
What I have tried:
1. Right-Click the tree view -- edit additional templates -- edit generated items (item template) --
edit current .. but it is disabled
2. Tried to open the resource dictionary file (in which the template is defined) in the designer, but got :
Quote:
TreeViewStyles.xaml cannot be edited in the Design view.