Skip to content

Commit 1c72a8f

Browse files
Add support for IMultiValueConverter
1 parent 045bf57 commit 1c72a8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Catel.SourceGenerators/XamlConstructors/ValueConverterConstructorsSourceGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ private static bool IsSyntaxTargetForGeneration(SyntaxNode node)
6666
return null;
6767
}
6868

69-
if (!classSymbol.ImplementsInterface("System.Windows.Data.IValueConverter"))
69+
if (!classSymbol.ImplementsInterface("System.Windows.Data.IValueConverter") &&
70+
!classSymbol.ImplementsInterface("System.Windows.Data.IMultiValueConverter"))
7071
{
7172
return null;
7273
}

0 commit comments

Comments
 (0)