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.StringFormat not working via Code behind #3168

skelvir opened this Issue Jan 22, 2018 · 2 comments


None yet
2 participants

skelvir commented Jan 22, 2018

What steps will reproduce this issue?

NumericUpDown.StringFormat is working fine if declared in XAML, but if you try to change it via Code behind, it will cause an exception.

Expected outcome

Changing StringFormat should update the content while preserving the Value



  • MahApps.Metro
  • Windows 7 64-bit
  • Visual Studio 2017 Community
  • .NET Framework 4.5

@punker76 punker76 added the Bug label Jan 22, 2018

@punker76 punker76 added this to the 1.6.0 milestone Jan 22, 2018


This comment has been minimized.


punker76 commented Jan 22, 2018

@skelvir Thank you for the sample! 👍 This issue is already fixed and will be available in v1.6 (or via appveyor nightly build).

Duplicate of #3031

PS: Why do you want to change the format on any value change?

@punker76 punker76 closed this Jan 22, 2018


This comment has been minimized.

skelvir commented Jan 22, 2018

@punker76 I do not intend to change on any value change, I just used that as a quick sample.
In reality I only need to change once during initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment