Skip to content

Proposal: NumberBox enhancement for the decimal type #2466

@christiannagel

Description

@christiannagel

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions