From eedc7be63a3b0da5647b187bf5494ce4c9f1622f Mon Sep 17 00:00:00 2001 From: Vincenzo Ciaccio Date: Thu, 13 Oct 2022 16:34:38 +0100 Subject: [PATCH 1/2] adding a more detailed example of escaping binding --- docs/data-binding/bindings.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/data-binding/bindings.md b/docs/data-binding/bindings.md index ad86614..8fe9de9 100644 --- a/docs/data-binding/bindings.md +++ b/docs/data-binding/bindings.md @@ -72,11 +72,13 @@ You can apply a format string to the binding to influence how the value is repre + + ``` When a `StringFormat` parameter is present, the value of the binding will be converted using the `StringFormatValueConverter` which will be passed the format string. -Other than in WPF, you need to surround the string format with curly braces and start with 0: (`{0:TheStringFormat}`). If the curly braces are at the beginning of the format string, you need to escape them by either adding `{}` in front of it or by using backslashes `\{ ... \}`: +Other than in WPF, you need to surround the string format with curly braces and start with 0: (`{0:TheStringFormat}`). If the curly braces are at the beginning of the format string, even if sorrounded by single quotes, you need to escape them by either adding `{}` in front of it or by using backslashes `\{ ... \}`: **WPF:** @@ -89,6 +91,7 @@ Other than in WPF, you need to surround the string format with curly braces and ```markup + ``` {% hint style="info" %} From 9a0030405499ae1685fa0f5bdcd422f6a06a3048 Mon Sep 17 00:00:00 2001 From: Vincenzo Ciaccio Date: Thu, 13 Oct 2022 16:36:43 +0100 Subject: [PATCH 2/2] typo --- docs/data-binding/bindings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data-binding/bindings.md b/docs/data-binding/bindings.md index 8fe9de9..3457952 100644 --- a/docs/data-binding/bindings.md +++ b/docs/data-binding/bindings.md @@ -72,7 +72,7 @@ You can apply a format string to the binding to influence how the value is repre - + ```