-
Notifications
You must be signed in to change notification settings - Fork 711
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
Error Adding DataGrid in WinUI 3 Alpha Page #1860
Comments
@infoequipt The data grid in the toolkit is built on top of the platform xaml (Windows.Ui.Xaml). WinUI3 is the same XAML codebase that has been decoupled from the OS (and has an updated namespace Microsoft.UI.Xaml). The reason I believe you are seeing is that the datagrid is not compiled against WinUI3. We need a version of the toolkit that targets WinUI3 for that to work. @nmetulev and @MikeHillberg This might make sense to track in the toolkit repo. |
Thanks Ranjesh, I thought that might be the case. |
Ping @michael-hawker |
Hopefully, there will be work started on a new DataGrid before the stable release of WinUI 3 Desktop. |
This should be extended to all of the toolkit, not just data grid. |
I filed a bug in Windows Community toolkit to track this. @Austin-Lamb @MikeHillberg @michael-hawker as FYI. |
I did push a branch of the toolkit that supports that, but it's in very early stages, and not everything is ported. |
@azchohfi That is awesome ! Thanks. |
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
The text was updated successfully, but these errors were encountered: