Skip to content

Commit 2eac6a2

Browse files
Chi_XiaohuiChi_Xiaohui
authored andcommitted
Hint is can't Float in TextBox and ComboBox when text is only all SPACE. #578 #574
1 parent 7611177 commit 2eac6a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/HintProxyFabric.ComboBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public object Content
5050

5151
public bool IsEmpty()
5252
{
53-
return string.IsNullOrWhiteSpace(_comboBox.Text);
53+
return string.IsNullOrEmpty(_comboBox.Text);
5454
}
5555

5656
public event EventHandler ContentChanged;

MaterialDesignThemes.Wpf/HintProxyFabric.TextBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private sealed class TextBoxHintProxy : IHintProxy
1616

1717
public bool IsVisible => _textBox.IsVisible;
1818

19-
public bool IsEmpty() => string.IsNullOrWhiteSpace(_textBox.Text);
19+
public bool IsEmpty() => string.IsNullOrEmpty(_textBox.Text);
2020

2121
public event EventHandler ContentChanged;
2222
public event EventHandler IsVisibleChanged;

0 commit comments

Comments
 (0)