Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.17k stars 128 forks source link

x:Bind Functions - String parameter gets formatted #498

Open IcySnex opened 1 month ago

IcySnex commented 1 month ago

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):

Additional context Add any other context about the problem here.