Skip to content

Commit 5c17643

Browse files
committed
Proxy hint Content based on ComboBox.IsEditable
1 parent 1af11d0 commit 5c17643

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MaterialDesignThemes.Wpf/HintProxyFabric.ComboBox.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ private sealed class ComboBoxHintProxy : IHintProxy
1616
private readonly ComboBox _comboBox;
1717
private readonly TextChangedEventHandler _comboBoxTextChangedEventHandler;
1818

19-
public object Content => _comboBox.Text;
19+
public object Content => _comboBox.IsEditable
20+
? _comboBox.Text
21+
: _comboBox.SelectedItem != null ? " " : null;
22+
2023
public bool IsLoaded => _comboBox.IsLoaded;
2124
public bool IsVisible => _comboBox.IsVisible;
2225

0 commit comments

Comments
 (0)