Skip to content

Commit f44a495

Browse files
authored
Merge pull request #613 from helenchixp/master
Issues #574 MaterialDesignFloatingHintTextBox and Issues #573 CloseDialogCommand use in ContextMenu in MVVM.
2 parents 1d3bd3d + c0e7c1a commit f44a495

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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.PasswordBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ private sealed class PasswordBoxHintProxy : IHintProxy
99
{
1010
private readonly PasswordBox _passwordBox;
1111

12-
public bool IsEmpty() => string.IsNullOrWhiteSpace(_passwordBox.Password);
12+
public bool IsEmpty() => string.IsNullOrEmpty(_passwordBox.Password);
1313

1414
public object Content => _passwordBox.Password;
1515

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;

MaterialDesignThemes.Wpf/Themes/Generic.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@
616616
TextElement.FontWeight="Regular"
617617
TextElement.FontSize="13"
618618
TextOptions.TextFormattingMode="Ideal"
619-
TextOptions.TextRenderingMode="Auto"
619+
TextOptions.TextRenderingMode="Auto"
620620
FocusManager.IsFocusScope="False"
621621
Foreground="{DynamicResource MaterialDesignBody}"
622622
FontFamily="{StaticResource MaterialDesignFont}"

0 commit comments

Comments
 (0)