Skip to content

Commit 25ed472

Browse files
Fix binding failures due to missing Background property on the base type.
1 parent f6c763e commit 25ed472

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ICSharpCode.ILSpyX/TreeView/SharpTreeNode.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ public virtual object? ToolTip {
134134
get { return null; }
135135
}
136136

137+
public virtual object? Background {
138+
get { return null; }
139+
}
140+
141+
public virtual object? Foreground {
142+
get { return null; }
143+
}
144+
137145
public int Level {
138146
get { return Parent != null ? Parent.Level + 1 : 0; }
139147
}

ILSpy/ViewModels/CompareViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ public override FilterResult Filter(LanguageSettings settings)
702702
return compareViewModel.ShowIdentical || entry.RecursiveKind != DiffKind.None ? FilterResult.Match : FilterResult.Hidden;
703703
}
704704

705-
public Brush Background {
705+
public override object? Background {
706706
get {
707707
switch (entry.RecursiveKind)
708708
{

0 commit comments

Comments
 (0)