Skip to content

Error Adding DataGrid in WinUI 3 Alpha Page #1860

@infoequipt

Description

@infoequipt

XamlCompiler error WMC0020: Cannot add 'DataGrid' into the collection property 'Children', type must be 'UIElement'

Create a new project using the WinUI 3.0 Alpha C# "Blank App (WinUI UWP)" template.
Add [Microsoft.Toolkit.Uwp.UI.Controls] DataGrid to Page.

VS 2019 Community 16.4.3
Microsoft.WinUI v3.0.0-alpha.191101.0
Microsoft.Toolkit.Uwp.UI.Controls.DataGrid v6.0.0
Windows 10 Version 1903 10.0.18362

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions