We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d238ea0 + e709e12 commit d5aca96Copy full SHA for d5aca96
MaterialDesignThemes.Wpf/HintProxyFabric.ComboBox.cs
@@ -16,9 +16,21 @@ private sealed class ComboBoxHintProxy : IHintProxy
16
private readonly ComboBox _comboBox;
17
private readonly TextChangedEventHandler _comboBoxTextChangedEventHandler;
18
19
- public object Content => _comboBox.IsEditable
20
- ? _comboBox.Text
21
- : _comboBox.SelectedItem != null ? " " : null;
+ public object Content
+ {
+ get
22
23
+ if (_comboBox.IsEditable)
24
25
+ return _comboBox.Text;
26
+ }
27
+
28
+ ComboBoxItem comboBoxItem = _comboBox.SelectedItem as ComboBoxItem;
29
+ return comboBoxItem != null
30
+ ? comboBoxItem.Content
31
+ : _comboBox.SelectedItem;
32
33
34
35
public bool IsLoaded => _comboBox.IsLoaded;
36
public bool IsVisible => _comboBox.IsVisible;
0 commit comments