Skip to content

Commit

Permalink
Merge branch 'development' of github.com:lepoco/wpfui into development
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski committed Oct 9, 2023
2 parents b38cecc + d1f0092 commit 119de50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Wpf.Ui/Controls/NumberBox/NumberBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

// This Source Code is partially based on the source code provided by the .NET Foundation.

using System.Windows.Data;
using System.Windows.Input;

// ReSharper disable once CheckNamespace
Expand All @@ -13,7 +14,6 @@ namespace Wpf.Ui.Controls;
// TODO: Mask (with placeholder); Clipboard paste;
// TODO: Constant decimals when formatting. Although this can actually be done with NumberFormatter.
// TODO: Disable expression by default
// TODO: Fix when exiting with TAB, try to organize the OnTextChanged
// TODO: Lock to digit characters only by property

/// <summary>
Expand All @@ -34,7 +34,7 @@ public class NumberBox : Wpf.Ui.Controls.TextBox
nameof(Value),
typeof(double?),
typeof(NumberBox),
new FrameworkPropertyMetadata((double?)null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnValuePropertyChanged)
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnValuePropertyChanged, null, false, UpdateSourceTrigger.LostFocus)
);

/// <summary>
Expand Down

0 comments on commit 119de50

Please sign in to comment.