Skip to content

Commit a791612

Browse files
Fix broken HexFilterControl
1 parent 44aa41d commit a791612

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ILSpy/Metadata/Helpers.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ DataGridColumn GetColumn()
136136
{
137137
return new DataGridCheckBoxColumn() {
138138
Header = e.PropertyName,
139+
SortMemberPath = e.PropertyName,
139140
Binding = binding
140141
};
141142
}
@@ -146,12 +147,14 @@ DataGridColumn GetColumn()
146147
{
147148
return new DataGridTemplateColumn() {
148149
Header = e.PropertyName,
150+
SortMemberPath = e.PropertyName,
149151
CellTemplate = GetOrCreateLinkCellTemplate(e.PropertyName, descriptor, binding)
150152
};
151153
}
152154

153155
return new DataGridTextColumn() {
154156
Header = e.PropertyName,
157+
SortMemberPath = e.PropertyName,
155158
Binding = binding
156159
};
157160
}

ILSpy/Metadata/HexFilterControl.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public ContentFilter(string filter)
7373

7474
public bool IsMatch(object value)
7575
{
76+
if (string.IsNullOrWhiteSpace(filter))
77+
return true;
7678
if (value == null)
7779
return false;
7880

0 commit comments

Comments
 (0)