-
Notifications
You must be signed in to change notification settings - Fork 854
Cannot create custom Dictionary in XAML #13373
Copy link
Copy link
Labels
area/code-generationCategorizes an issue or PR as relevant to code generationCategorizes an issue or PR as relevant to code generationdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUICategorizes an issue for which the difficulty level is reachable with a good understanding of WinUIhas-repro-branchkind/bugSomething isn't workingSomething isn't workingtriage/potentially-fixedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verifiedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified
Metadata
Metadata
Assignees
Labels
area/code-generationCategorizes an issue or PR as relevant to code generationCategorizes an issue or PR as relevant to code generationdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUICategorizes an issue for which the difficulty level is reachable with a good understanding of WinUIhas-repro-branchkind/bugSomething isn't workingSomething isn't workingtriage/potentially-fixedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verifiedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified
Type
Fields
Give feedbackNo fields configured for Bug.
Current behavior
Code generation fails when attempting to instantiate a custom Dictionary class in XAML
Expected behavior
Code should generate fine
How to reproduce it (as minimally and precisely as possible)
Create a custom Dictionary class such as
Attempt to create a instance of MyDictionary in your XAML
Note the build error:
Sample repro app attached. Just remove the
win:prefix in thePage.Resourcesof theMainPage.xamlto see the errorUnoApp57.zip
Workaround
No response
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
No response
Affected platforms
Build tasks
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response