You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NumericUpDown: If HasDecimals is set to false and StringFormat was bound, HasDecimals will be set to true after unloading and loading the control
#2958
Closed
mmarkwort opened this issue
May 4, 2017
· 2 comments
Prerequisites: Place the NumericUpDown control in an panel that uses virtualization and make it scrollable so that the NumericUpDown will be unloaded if it is not visible. Bind the Property StringFormat (e.g. '{0} s') with the corresponding ViewModel and set HasDecimals to false.
If the control is unloaded the StringFormat will be reset to an empty string. This causes that RegEx.IsMatch will return true. Now HasDecimals is also set to true.
The text was updated successfully, but these errors were encountered:
mmarkwort
added a commit
to mmarkwort/MahApps.Metro
that referenced
this issue
May 4, 2017
Prerequisites: Place the NumericUpDown control in an panel that uses virtualization and make it scrollable so that the NumericUpDown will be unloaded if it is not visible. Bind the Property StringFormat (e.g. '{0} s') with the corresponding ViewModel and set HasDecimals to false.
If the control is unloaded the StringFormat will be reset to an empty string. This causes that RegEx.IsMatch will return true. Now HasDecimals is also set to true.
The text was updated successfully, but these errors were encountered: