Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumericUpDown with Integer Only Option. #2065

Merged
merged 3 commits into from
Oct 31, 2015

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