You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
@fatscally the min version of the toolkit currently is -windows10.0.18362, have you tried using net6.0-windows10.0.18362 instead?
Hello Michael!
I have spent the last hour or so trying every different configuration based on your suggestion.
I've tried Microsoft.Toolkit.Uwp.UI.Controls.DataGrid and CommunityToolkit.WinUI.UI.Controls.DataGrid.
I have played about with the Target OS version. Everything builds and runs fine until I try to use the controls:DataGrid
The Microsoft version does not install:
Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 is not compatible with net6.0-windows10.0.18362 (.NETCoreApp,Version=v6.0). Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763
And if I change it to 10.0.17763 it will not install.
Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 is not compatible with net6.0-windows10.0.17763 (.NETCoreApp,Version=v6.0). Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763)
I am wondering do I need to download and compile the source locally? It's not something I've done before. I'm more of a plain old business app developer.
I opened VS2022 17.1.4
Created new WPF Application. Framework .Net5.0 (current)
Right click on project and select Properties.
Target OS version: 10.0.17763.0
Open Nuget manager.
Try install Microsoft.Toolkit.Uwp.UI.Controls.DataGrid Latest Stable 7.1.2
Error:
`Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 is not compatible with net5.0-windows10.0.17763 (.NETCoreApp,Version=v5.0).
Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763)
CommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.2 is not compatible with net5.0-windows10.0.17763 (.NETCoreApp,Version=v5.0).
Package CommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.2 supports: net5.0-windows10.0.18362 (.NETCoreApp,Version=v5.0)
So I change the build Target to 10.0.18362 an it will install.
I add the reference in the xaml:
xmlns:controls="clr-namespace:CommunityToolkit.WinUI.UI.Controls;assembly=CommunityToolkit.WinUI.UI.Controls.DataGrid"
<Grid>
<controls:DataGrid x:Name="MrGridFace">
</controls:DataGrid>
</Grid>
Now I get the errors
A value of type 'DataGrid' cannot be added to a collection or dictionary of type 'UIElementCollection'
The specified value cannot be assigned to the collection. The following type was expected: "UIElement".
Activity
michael-hawker commentedon Apr 15, 2022
@fatscally the min version of the toolkit currently is
-windows10.0.18362, have you tried usingnet6.0-windows10.0.18362instead?fatscally commentedon Apr 15, 2022
Hello Michael!
I have spent the last hour or so trying every different configuration based on your suggestion.
I've tried Microsoft.Toolkit.Uwp.UI.Controls.DataGrid and CommunityToolkit.WinUI.UI.Controls.DataGrid.
I have played about with the Target OS version. Everything builds and runs fine until I try to use the controls:DataGrid

The Microsoft version does not install:
Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 is not compatible with net6.0-windows10.0.18362 (.NETCoreApp,Version=v6.0). Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763
And if I change it to 10.0.17763 it will not install.
Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 is not compatible with net6.0-windows10.0.17763 (.NETCoreApp,Version=v6.0). Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763)
I am wondering do I need to download and compile the source locally? It's not something I've done before. I'm more of a plain old business app developer.
fatscally commentedon Apr 15, 2022
Seems to me it's not working anywhere!...
I opened VS2022 17.1.4
Created new WPF Application. Framework .Net5.0 (current)
Right click on project and select Properties.
Target OS version: 10.0.17763.0
Open Nuget manager.
Try install Microsoft.Toolkit.Uwp.UI.Controls.DataGrid Latest Stable 7.1.2
Error:
`Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 is not compatible with net5.0-windows10.0.17763 (.NETCoreApp,Version=v5.0).
Package Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763)
Try install CommunityToolkit.WinUI.UI.Controls.DataGrid
Error:
So I change the build Target to 10.0.18362 an it will install.
I add the reference in the xaml:
xmlns:controls="clr-namespace:CommunityToolkit.WinUI.UI.Controls;assembly=CommunityToolkit.WinUI.UI.Controls.DataGrid"
michael-hawker commentedon Apr 15, 2022
@fatscally these controls are for UWP or WinUI 3, they don't work in a WPF project directly unless you use XAML Islands.
You can read more about WinUI 3 here and more about using the Toolkit with WinUI 3 here.
fatscally commentedon Apr 16, 2022
Yup! That explains it. I had my suspicions. I haven't gone down the WinUI rabbit hole yet.
Right so let's delete this "bug"! :)