-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XAML Intellisense for inner elements #1407
Comments
Moving the attribute out seems like an extremely bad idea, on many levels. Also, that's not what Xamarin.Forms is doing, as the ContentPropertyAttribute is defined in Xamarin.Forms.Core, not in the design assembly. Maybe the VS designer is looking for the design assembly and looks for the attribute there. We can try creating such an assembly and add references to |
I investigated this a bit more, and it seems that the Design assembly is not loaded/found/parsed by VS. I updated the original issue on community with some additional questions. |
Any updates on this? I was trying Uno for the first time just now and this still happens in VS 2019 V16.5.2 and for the version 2.0.532.6 of the templates. Are there any workarounds? |
None at this point, we're still looking at this with Microsoft. |
Is there ANY workaround to this? Any way we can develop using Uno without this issue? |
@LeonardoEstrela-Dev if you set the platform picker to UWP the full intelliscence will work. This issue only occurs if the dropdown is set to something other than UWP, which should rarely be necessary. |
@MatFillion thank you, that worked! |
@MatFillion Could you elaborate which platform picker you are refering to? Having the UWP Project as Startup Project automatically selects UWP as platform. But still the issue persists if i open the XAML file from the Shared Project: As this is a first impression people are getting when trying out the Uno Platform i think it's this should be priorized higher in order to support adoption. |
@marxxxx the picker in question is the one immediately on top of the editor section in your screenshot, which has " |
@jeromelaban Got it, thank you! Did not even know this guy exists! :) That fixes the problem. |
@michalss please see above, or https://stackoverflow.com/questions/61620422/the-type-page-does-not-support-direct-content
|
Thx it worked, i had to kill editor and start it again. I hope this will be fixed soon.. :) |
I followed the stack overflow and the comment threads for this issue and still cant resolve the error. |
I was able to resolve it. I had to clean then relaunch the project. |
This issue has been fixed in VS 16.10 for iOS, Android and macOS projects: https://developercommunity.visualstudio.com/t/XAML-Intellisense-does-not-use-ContentPr/587980 |
Current behavior
Anything else we need to know?
Feedback from https://developercommunity.visualstudio.com/content/problem/587980/xaml-intellisense-does-not-use-contentpropertyattr.html and a recent video call with the Visual Studio team recommended that we look at the Xamarin.Forms project. Specifically ContentPropertyAttributes need to be moved out of
Uno.UI.dll
and into a design assembly. ie.https://github.com/xamarin/Xamarin.Forms/tree/master/Xamarin.Forms.Core.Design
For which Platform:
The text was updated successfully, but these errors were encountered: