Skip to content

Commit b15f487

Browse files
committed
fix: Set top level class name for ResourceDictionary with code-behind
1 parent 09e3a0f commit b15f487

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ private SourceText InnerGenerateFile()
353353
if (topLevelControl.Type.Name == "ResourceDictionary")
354354
{
355355
_isTopLevelDictionary = true;
356+
_xClassName = FindClassName(topLevelControl);
356357

357358
using (TrySetDefaultBindMode(topLevelControl))
358359
{

0 commit comments

Comments
 (0)