Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x:Bind Functions - String parameter gets formatted #498

Open
IcySnex opened this issue Jul 15, 2024 · 0 comments
Open

x:Bind Functions - String parameter gets formatted #498

IcySnex opened this issue Jul 15, 2024 · 0 comments

Comments

@IcySnex
Copy link

IcySnex commented Jul 15, 2024

Describe the bug
As the title already says: String parameters given to x:Bind functions also get formatted.
For example:
<Run Text="{x:Bind viewModel.SomeInteger.ToString('#,0', x:Null)}" /> gets formatted to <Run Text="{x:Bind viewModel.SomeInteger.ToString('#, 0', x:Null)}" />. It adds a space between the comma and zero which does not represent the original format.

To Reproduce
Steps to reproduce the behavior:

  1. Use for example the .ToString method on a x:binded property
  2. See how the string parameter gets formatted

Expected behavior
It should not format any string parameters.

External Configuration
Default configuration.

Version Info (please complete the following information):

  • OS: Windows 11 Version 23H2 (Build 22631.3737)
  • Visual Studio: Community 2022 (17.11.0 Preview 2.1)
  • XAML Styler: 3.24042

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants