Skip to content

XAML Intellisense for inner elements #1407

@ghuntley

Description

@ghuntley

Current behavior

  1. Install https://marketplace.visualstudio.com/items?itemName=nventivecorp.uno-platform-addin
  2. Create a new project using the Cross-Platform App (Uno Platform) app project template
  3. Close the project (see https://developercommunity.visualstudio.com/content/problem/587976/xaml-intellisense-does-not-start-properly-on-proje.html)
  4. Open the MainPage.xaml file in the MyApp.Shared\MainPage.xaml
  5. In the project selector, select “MyProject.Droid”
  6. Notice that the Page element is properly recognized by the editor, but the inner elements are not with the message The type Page does not support direct content, even if the type Page has ContentPropertyAttribute defined in its base classes.

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.

image

https://github.com/xamarin/Xamarin.Forms/tree/master/Xamarin.Forms.Core.Design

For which Platform:

  • iOS
  • Android
  • WebAssembly
  • Visual Studio for Windows
  • Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vswinCategorizes an issue or PR as relevant to Visual Studio for Windowsdifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/enhancementNew feature or requestplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/ios 🍎Categorizes an issue or PR as relevant to the iOS platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/core-tools 🛠️Categorizes an issue or PR as relevant to core and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions