problem installing the windows community toolkit #13090
-
i am using a uno platform project like you get when creating a blank uno project. I installed the "Uno.Microsoft.Toolkit.Uwp.UI.Controls.DataGrid" version of the toolkit to use a datagrid and folowed this guide: My aim is to use the wrappanel for a crossplatform app. But I dont even can use the datagrid My xaml code: <Page x:Class="wrapgridtest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:wrapgridtest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<controls:DataGrid>
<controls:DataGrid.Columns>
<controls:DataGridTextColumn Header="Rank"/>
<controls:DataGridComboBoxColumn Header="Mountain"/>
</controls:DataGrid.Columns>
</controls:DataGrid>
</Grid>
</Page> When building the application I get the following errors:
I also cant install the "Uno.CommunityToolkit.WinUI" package using the vs nuget package manager. Can someone help? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
I can now install the "Uno.CommunityToolkit.WinUI" package, but using this code i get the folowing errors: <Page x:Class="DataGridTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:DataGridTest"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<controls:DataGrid x:Name="dataGrid">
<controls:DataGrid.Columns>
<controls:DataGridTextColumn Header="Rank"/>
<controls:DataGridComboBoxColumn Header="Mountain"/>
</controls:DataGrid.Columns>
</controls:DataGrid>
</Grid>
</Page>
|
Beta Was this translation helpful? Give feedback.
-
Was there any resolution to this I am having the exact same issue using CommunityToolkit and following the same documentation |
Beta Was this translation helpful? Give feedback.
Hi @tomchoondal (cc @palusi, @arnold256)
We will update soon our documentation and samples with the new changes.
But here are the details with our latest single project structure:
For WCT (v. 7.1.2 and below):
xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls"
In Directory.Packages.props: