diff --git a/src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs b/src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs index 5f23b7778c7a..510492cd6d6c 100644 --- a/src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs +++ b/src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs @@ -782,10 +782,12 @@ private void BuildGenericControlInitializerBody(IndentedStringBuilder writer, Xa { RegisterAndBuildResources(writer, topLevelControl, isInInitializer: false); BuildProperties(writer, topLevelControl, isInline: false, useBase: true); - BuildInlineLocalizedProperties(writer, topLevelControl, topLevelControlType, isInInitializer: false); writer.AppendLineIndented(";"); + writer.AppendLineIndented(""); + BuildInlineLocalizedProperties(writer, topLevelControl, topLevelControlType, isInInitializer: false); + writer.AppendLineIndented(""); writer.AppendLineIndented("this");