Skip to content

NumericUpDown: If HasDecimals is set to false and StringFormat was bound, HasDecimals will be set to true after unloading and loading the control #2958

@mmarkwort

Description

@mmarkwort

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions