FormatString property for NumericUpDown #18653
Replies: 2 comments
-
|
The FormatString needs to be as documented here: If you try to use (like I did) a format string such as the ones in string.Format (...) with curly braces, this will fail. |
Beta Was this translation helpful? Give feedback.
-
|
If the value is not null or whitespace, but does not contain the character Avalonia/src/Avalonia.Base/Data/Core/BindingExpression.cs Lines 108 to 113 in b16975c After that, the binding value will be formatted with Avalonia/src/Avalonia.Base/Data/Core/BindingExpression.cs Lines 481 to 488 in b16975c https://docs.avaloniaui.net/docs/basics/data/data-binding/data-binding-syntax#string-formatting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Where can I find any documentation about this FormatString property?
Apparently it does not work like a classic C# string used in string.Format...
Thanks
Beta Was this translation helpful? Give feedback.
All reactions