Skip to content

Commit 1189425

Browse files
Copilotbrianrob
andauthored
Fix TreeView auto-expansion when opening trace files (#2218)
* Initial plan for issue * Fix TreeView auto-expansion by binding IsExpanded property Co-authored-by: brianrob <6210322+brianrob@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: brianrob <6210322+brianrob@users.noreply.github.com>
1 parent 034750c commit 1189425

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PerfView/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
<TreeView.ItemContainerStyle>
199199
<Style TargetType="TreeViewItem">
200200
<Setter Property="AutomationProperties.Name" Value="{Binding Name}" />
201+
<Setter Property="IsExpanded" Value="{Binding IsExpanded}" />
201202
</Style>
202203
</TreeView.ItemContainerStyle>
203204
<TreeView.ItemTemplate>

0 commit comments

Comments
 (0)