This commit is contained in:
heartacker
2024-03-21 15:53:50 +08:00
parent 569e5c104c
commit a183d420de
2 changed files with 1 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ public partial class NumericUpDownDemoViewModel : ObservableObject
Array_ParsingNumberStyle = Enum.GetValues(typeof(NumberStyles)); Array_ParsingNumberStyle = Enum.GetValues(typeof(NumberStyles));
NumericUIntUpDown numericUIntUpDown; NumericUIntUpDown numericUIntUpDown;
TextBox textBox; TextBox textBox;
} }
partial void OnValueChanging(uint oldValue, uint newValue) partial void OnValueChanging(uint oldValue, uint newValue)

View File

@@ -336,7 +336,6 @@ public abstract class NumericUpDownBase<T> : NumericUpDown where T : struct, ICo
if ((numberStyles & NumberStyles.AllowHexSpecifier) != 0) if ((numberStyles & NumberStyles.AllowHexSpecifier) != 0)
{ {
if (text.StartsWith("0X") || text.StartsWith("0x")) // support 0x hex while user input if (text.StartsWith("0X") || text.StartsWith("0x")) // support 0x hex while user input
{ {
text = text.Substring(2); text = text.Substring(2);