From d13869f6aa6f981014938e7ee1a6aeaf0d0980a9 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Sun, 8 May 2022 16:25:48 +0200 Subject: [PATCH] minor corrections --- docs/data-binding/converting-binding-values.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data-binding/converting-binding-values.md b/docs/data-binding/converting-binding-values.md index b2c7a9b..199bd69 100644 --- a/docs/data-binding/converting-binding-values.md +++ b/docs/data-binding/converting-binding-values.md @@ -85,7 +85,7 @@ Convert text to specifc case from a parameter ```markup + ConverterParameter=lower}" /> ``` ```csharp public class TextCaseConverter : IValueConverter @@ -95,7 +95,7 @@ public class TextCaseConverter : IValueConverter public object? Convert( object? value, Type targetType, object? parameter, CultureInfo culture ) { if (value is string sourceText && parameter is string targetCase - targetType.IsAssignableTo(typeof(string))) + && targetType.IsAssignableTo(typeof(string))) { switch (targetCase) { @@ -104,7 +104,7 @@ public class TextCaseConverter : IValueConverter return sourceText.ToUpper(); case "lower" return sourceText.ToLower(); - case "title": + case "title": // Every First Letter Uppercase var txtinfo = new System.Globalization.CultureInfo("en-US",false).TextInfo; return txtinfo.ToTitleCase(sourceText); default: