Skip to content

Use of CultureInfo in StringFormatConverter #3243

@hansmbakker

Description

@hansmbakker

I'm trying to use the StringFormatConverter.

String formatting is often linked to a certain CultureInfo (numbers, dates, currency, etc). For my case I would like to format a double into a currency string.

I see no way how to specify the CultureInfo as a parameter to this StringFormatConverter; the language parameter of the converter is not used.

My workaround would be to perform the formatting not in XAML, but I believe that defeats the purpose of this converter.

Is there a way to specify CultureInfo in StringFormatConverter?

Metadata

Metadata

Assignees

Labels

Completed 🔥feature request 📬A request for new changes to improve functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesimprovements ✨

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions