Skip to content
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

[Bug] ViewCell does not support direct content #2437

Closed
juansturla opened this issue Sep 9, 2021 · 1 comment
Closed

[Bug] ViewCell does not support direct content #2437

juansturla opened this issue Sep 9, 2021 · 1 comment
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging

Comments

@juansturla
Copy link

juansturla commented Sep 9, 2021

Description

I imported a ViewCell from a Xamarin.Forms Project into a .net MAUI project
The Message is "ViewCell does not support direct content"

Steps to Reproduce

  1. Create a new Maui Project
  2. Create new element, ViewCell
  3. Delete <ViewCell.View> and </ViewCell.View>

Expected Behavior

The content between and should be taken as the Content
<ViewCell.View></ViewCell.View> should not be necesary. Just like <ContentPage.Content>

Actual Behavior

Error is shown(screenshot below)

Basic Information

  • Version with issue: 6.0.100-preview.7.21379.14
  • Last known good version: It worked with XamarinForms
  • IDE: VS2022 preview3.1
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

VS2022 - MAUI project
image

VS2019 - XF Project
image

Workaround

I had to add <ViewCell.View> and </ViewCell.View>

@juansturla
Copy link
Author

It was always compiling. But the issue was shown. Among others like attached properties.
Might be an issue related to visual studio

@Redth Redth added the area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging label Sep 27, 2021
@Redth Redth added this to the 6.0.101-preview.9 milestone Sep 27, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging
Projects
None yet
Development

No branches or pull requests

2 participants