Open fabianoriccardi opened 1 year ago
This is true for Win32 as well. Nested types cannot be referenced at all at the moment.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Any update on this?
Out of curiosity, I have tested this issue and I can confirm it is still here with WASDK v1.5.6.
So, I kindly ask the moderators to reopen it.
Describe the bug
Using WinUI3 (Windows App SDK), I cannot access to nested class in DataTemplate x:DataType. I had already tried to look at old issues, and the most relevant seems #3238, however the
+
symbol doesn't solve the issue.I'm not sure where I should open the issue (https://github.com/microsoft/ProjectReunion or here)..
Steps to reproduce the bug
A very minimalistic example: In XAML file:
while che code-behind is:
If I move class
Person
in the global scope (removing it from MainWindow class) and modifying the x:DataType tolocal:Person
, the code compiles.Expected behavior
This code should compile.
Screenshots
NuGet package version
No response
Windows app type
Device form factor
Desktop
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response