Using x:Name works on UWP but not with WASM #13997
Answered
by
jeromelaban
saadsharif
asked this question in
Q&A
-
For an app that works on UWP head, I cannot get rid of this error for on the WASM head of a solution, 'The name __ does not exist in the current context'. This is to reference a SkiaSharp control. I have tried checking the packages, checking documentation, samples, etc. Is it because of the use of UWP XAML and not WinUI? I cannot find a sample that makes use of UWP XAML and not WinUI. |
Beta Was this translation helpful? Give feedback.
Answered by
jeromelaban
Oct 18, 2023
Replies: 1 comment 2 replies
-
Can you please provide a repro project where this happens? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the report. This is likely caused by the fact that the namespace you added is called "skia" (Thanks @Youssef1313
for #14004), which conflicts with the platform-specific XAML feature.
Try using a different name, such as
sk
.