Browse Source

Fix binding failures due to missing Background property on the base type.

pull/3606/head
Siegfried Pammer 2 months ago
parent
commit
25ed4722ae
  1. 8
      ICSharpCode.ILSpyX/TreeView/SharpTreeNode.cs
  2. 2
      ILSpy/ViewModels/CompareViewModel.cs

8
ICSharpCode.ILSpyX/TreeView/SharpTreeNode.cs

@ -134,6 +134,14 @@ namespace ICSharpCode.ILSpyX.TreeView @@ -134,6 +134,14 @@ namespace ICSharpCode.ILSpyX.TreeView
get { return null; }
}
public virtual object? Background {
get { return null; }
}
public virtual object? Foreground {
get { return null; }
}
public int Level {
get { return Parent != null ? Parent.Level + 1 : 0; }
}

2
ILSpy/ViewModels/CompareViewModel.cs

@ -702,7 +702,7 @@ namespace ICSharpCode.ILSpy.ViewModels @@ -702,7 +702,7 @@ namespace ICSharpCode.ILSpy.ViewModels
return compareViewModel.ShowIdentical || entry.RecursiveKind != DiffKind.None ? FilterResult.Match : FilterResult.Hidden;
}
public Brush Background {
public override object? Background {
get {
switch (entry.RecursiveKind)
{

Loading…
Cancel
Save