Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Changed IsExpanded to two way binding so manually expanding items doe…
Browse files Browse the repository at this point in the history
…sn't break the binding
  • Loading branch information
garrettpauls committed May 5, 2019
1 parent c9224ba commit 13700c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions TrimSln.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0677E8D5-86F0-4EFE-B575-F42561BAD230}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
LICENSE = LICENSE
ReadMe.md = ReadMe.md
EndProjectSection
EndProject
Global
Expand Down
2 changes: 1 addition & 1 deletion TrimSln/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</TreeView.Resources>
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}" />
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
<Setter Property="Focusable" Value="False" />
<Setter Property="Visibility"
Value="{Binding MatchesFilter, Converter={StaticResource ConvertBooleanToVisibleCollapsed}}" />
Expand Down
4 changes: 2 additions & 2 deletions TrimSln/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Runtime.InteropServices;
using System.Windows;

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]

[assembly: AssemblyTitle("TrimSln")]
[assembly: AssemblyDescription("")]
Expand Down

0 comments on commit 13700c3

Please sign in to comment.