Skip to content

Commit

Permalink
TreeViewItem element updated with new attributes
Browse files Browse the repository at this point in the history
Updated the `TreeViewItem` element in several ways. The `Content` attribute, previously bound to `DisplayName`, has been removed, meaning the element no longer displays the `DisplayName` as its content. An `IsExpanded` attribute has been added with a default value of `True`, causing the element to always be expanded. Additionally, an `ItemsSource` attribute has been added and bound to `Children`, allowing the element to display child items if any are present.
  • Loading branch information
tajbender committed May 24, 2024
1 parent 7b385cf commit 60593e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/electrifier/Controls/Vanara/Shell32TreeView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
ItemsSource="{x:Bind RootShellItems}">
<TreeView.ItemTemplate>
<DataTemplate x:DataType="local:Shell32TreeViewItem">
<TreeViewItem Content="{x:Bind DisplayName}"
HasUnrealizedChildren="{x:Bind HasUnrealizedChildren}"
<TreeViewItem HasUnrealizedChildren="{x:Bind HasUnrealizedChildren}"
IsExpanded="True"
ItemsSource="{x:Bind Children}">
<StackPanel Orientation="Horizontal"
Expand Down

0 comments on commit 60593e7

Please sign in to comment.