{"record":{"id":"819f02f1ca36aeec","repo":"unoplatform/uno","slug":"this-converter-does-not-use-any-parameters-you-sh-819f02","errorCode":null,"errorMessage":"This converter does not use any parameters. You should remove \"{parameter}\" passed as parameter.","messagePattern":"This converter does not use any parameters\\. You should remove \"(.+?)\" passed as parameter\\.","errorType":"validation","errorClass":"ArgumentException","httpStatus":null,"severity":"error","filePath":"src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Converters/FromNullableBoolToDefaultValueConverter.cs","lineNumber":20,"sourceCode":"using System.Collections.Generic;\nusing System.Globalization;\nusing System.Text;\nusing Microsoft.UI.Xaml;\nusing Microsoft.UI.Xaml.Data;\nusing Microsoft.UI.Xaml.Media;\n\nnamespace Uno.UI.Samples.Converters\n{\n\tpublic class FromNullableBoolToDefaultValueConverter : IValueConverter\n\t{\n\t\tpublic object NullOrFalseValue { get; set; }\n\t\tpublic object TrueValue { get; set; }\n\n\t\tpublic object Convert(object value, Type targetType, object parameter, string language)\n\t\t{\n\t\t\tif (parameter != null)\n\t\t\t{\n\t\t\t\tthrow new ArgumentException($\"This converter does not use any parameters. You should remove \\\"{parameter}\\\" passed as parameter.\");\n\t\t\t}\n\n\t\t\tif (value != null && !(value is bool))\n\t\t\t{\n\t\t\t\tthrow new ArgumentException($\"Value must either be null or of type bool. Got {value} ({value.GetType().FullName})\");\n\t\t\t}\n\n\t\t\tif (value == null || !System.Convert.ToBoolean(value, CultureInfo.InvariantCulture))\n\t\t\t{\n\t\t\t\treturn NullOrFalseValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn TrueValue;\n\t\t\t}\n\t\t}\n\n\t\tpublic object ConvertBack(object value, Type targetType, object parameter, string language)","sourceCodeStart":2,"sourceCodeEnd":38,"githubUrl":"https://github.com/unoplatform/uno/blob/04183404888ea21b4e5bfa3493e8d5f15e972c3a/src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Converters/FromNullableBoolToDefaultValueConverter.cs#L2-L38","documentation":"Same design as error 105 but in the unit-test converter FromNullableBoolToDefaultValueConverter.Convert: it rejects any non-null ConverterParameter because parameterization is not supported. Used in UITests to assert clean binding usage.","triggerScenarios":"A test binding supplies ConverterParameter to this converter; the Convert guard throws.","commonSituations":"Test XAML copied from a parameterized converter; leftover ConverterParameter after refactoring a test fixture.","solutions":["Remove ConverterParameter from the test binding using this converter.","Use a parameterized converter if the test genuinely needs a parameter.","Audit the test page for the converter's resource key."],"exampleFix":"<!-- before -->\n<Binding Path=\"Flag\" Converter=\"{StaticResource Def}\" ConverterParameter=\"x\"/>\n<!-- after -->\n<Binding Path=\"Flag\" Converter=\"{StaticResource Def}\"/>","handlingStrategy":"validation","validationCode":"<!-- Audit test XAML: no ConverterParameter on this converter's bindings -->","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Document no-parameter converters in test fixtures.","Use clear resource keys and audit bindings during review."],"tags":["xaml","binding","converter","unit-tests","samples"],"backgroundTag":null,"analyzedSha":"04183404888ea21b4e5bfa3493e8d5f15e972c3a","analyzedAt":"2026-08-13T21:08:11.651Z","schemaVersion":2},"datasetVersion":"2026-08-14T00:17:13.853Z"}