-
Notifications
You must be signed in to change notification settings - Fork 790
Open
Labels
area-NumberBoxNumberBox ControlNumberBox Controlfeature proposalNew feature proposalNew feature proposalteam-ControlsIssue for the Controls teamIssue for the Controls team
Description
Proposal
NumberBox enhancement for the decimal type
Summary
The NumberBox is based on the double type. It should be as easy to use the decimal type instead.
Rationale
Many applications use the decimal instead of the double. If a property of type decimal is used with compiled binding, a casting exception is thrown. With reflection-based binding, the value is always 0.
- Decimals are often used with properties, and are needed to bind to UI elements, e.g. for money
Scope
| Capability | Priority |
|---|---|
This proposal will allow developers to bind the NumberBox to a decimal type |
Must |
Open Questions
Because a decimal is not part of the Windows Runtime base data types there might not be that many options for this functionality. I was successfully in creating and using a converter to convert from decimal to double - however, this workaround shouldn't be needed. Probably there's a way for a built-in conversion, or other options?
bennoremec and kucint
Metadata
Metadata
Assignees
Labels
area-NumberBoxNumberBox ControlNumberBox Controlfeature proposalNew feature proposalNew feature proposalteam-ControlsIssue for the Controls teamIssue for the Controls team