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.
1 parent 66b836b commit 4733a54Copy full SHA for 4733a54
src/MaterialDesignThemes.Wpf/Behaviors/TextBoxLineCountBehavior.cs
@@ -18,8 +18,9 @@ private void UpdateAttachedProperties()
18
associatedObject.Dispatcher
19
.BeginInvoke(() =>
20
{
21
- associatedObject.SetCurrentValue(TextFieldAssist.TextBoxLineCountProperty, associatedObject.LineCount);
22
- associatedObject.SetCurrentValue(TextFieldAssist.TextBoxIsMultiLineProperty, associatedObject.LineCount > 1);
+ int lineCount = associatedObject.LineCount;
+ associatedObject.SetCurrentValue(TextFieldAssist.TextBoxLineCountProperty, lineCount);
23
+ associatedObject.SetCurrentValue(TextFieldAssist.TextBoxIsMultiLineProperty, lineCount > 1);
24
},
25
DispatcherPriority.Background);
26
}
0 commit comments