Intellisense not recognizing xaml x:Name attribute as property #4654
Labels
area/external
Categorizes an issue or PR as being external to the Uno
kind/bug
Something isn't working
Current behavior
When I created the project from the Uno Platform Solutions Template in Visual Studio on Windows, adding the x:Name attribute to elements in the XAML was not detected by Intellisense in the code behind.
Expected behavior
Intellisense detects x:Name attributes in the code behind as properties on the class
How to reproduce it (as minimally and precisely as possible)
I had this issue from the start after creating the solution from Uno Platform Solutions Template, but have since resolved it, so I no longer have the example. Mostly I am posting the workaround below as documentation for others that may run into this, as I have seen other bug reports with people having this issue.
Workaround
After a lot of googling, I found some others had a similar issue on this thread.
The solution that ended up working for me was to delete the MainForm.xaml file in the shared project and recreate it under the UWP project. I then moved the file from the UWP project back into the shared project and everything started working. I tried all the steps suggested in the Getting Started tutorial and none worked.
Environment
Nuget Package:
Nuget Package Version(s):
PM> Get-Package | Select-Object Id, Version | Where-Object {$_.Id -like "uno*"}
Id Version
Uno.UI.RemoteControl 3.3.0
Uno.Wasm.Bootstrap 1.3.4
Uno.Wasm.Bootstrap.DevServer 1.3.4
Uno.UI 3.3.0
Uno.UI.WebAssembly 3.3.0
Uno.UI.RemoteControl 3.3.0
Uno.UI.Skia.Tizen 3.3.0
Uno.UI 3.3.0
Uno.UI.RemoteControl 3.3.0
Uno.UI 3.3.0
Uno.UI.Skia.Wpf 3.3.0
Uno.UI.RemoteControl 3.3.0
Uno.UI 3.3.0
Uno.UI.Skia.Wpf 3.3.0
Uno.UI 3.3.0
Uno.UI.RemoteControl 3.3.0
Uno.Core 2.0.0
Uno.UI 3.3.0
Uno.UI 3.3.0
Uno.UI.RemoteControl 3.3.0
Uno.UI 3.3.0
Uno.UI.RemoteControl 3.3.0
Uno.UniversalImageLoader 1.9.33
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
The text was updated successfully, but these errors were encountered: