Browse Source
Merge pull request #2254 from Kermalis/master
Update NumericUpDown Text when losing focus
pull/2262/head
Steven Kirk
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
src/Avalonia.Controls/NumericUpDown/NumericUpDown.cs
|
|
|
@ -287,6 +287,13 @@ namespace Avalonia.Controls |
|
|
|
ValueProperty.Changed.Subscribe(OnValueChanged); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
protected override void OnLostFocus(RoutedEventArgs e) |
|
|
|
{ |
|
|
|
CommitInput(); |
|
|
|
base.OnLostFocus(e); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
protected override void OnTemplateApplied(TemplateAppliedEventArgs e) |
|
|
|
{ |
|
|
|
|