Skip to content

Conversation

feinstein
Copy link
Contributor

Added the possibility for the NumericUpDown to behave as if it's Value is an Integer, removing the decimal separator as requested in Issue #2059.

Updated the Sample to reflect this change. The user can now use a CheckBox to turn the "HasDecimals" true or false to test it.

…e is an Integer, removing the decimal separator.

Updated the Sample to reflect this change. The user can now use a CheckBox to turn the "IsIntegerOnly" true or false to test it.
…k there is actually an int behind the scenes doing the work of the NumericUpDown.

Changed the CoerseValue to remove the decimals to cover cases where the decimal point came not from the keyboard itself.
Fixed the HasDecimalsChanged to not act if the double? is null. It was inserting a 0, where it should be null.
Updated the UI to reflect these changes.
@punker76 punker76 merged commit f3ac1f7 into MahApps:master Oct 31, 2015
@punker76 punker76 added this to the 1.2.0 milestone Oct 31, 2015
@feinstein feinstein deleted the NumericUpDown-Integer-Only-Feature branch November 1, 2015 21:47
@feinstein feinstein restored the NumericUpDown-Integer-Only-Feature branch March 7, 2016 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants