Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How can I use datagrid control in WinUI c++? #4781

Closed
Endt4sk opened this issue Oct 3, 2022 · 2 comments
Closed

How can I use datagrid control in WinUI c++? #4781

Endt4sk opened this issue Oct 3, 2022 · 2 comments
Labels
controls 🎛️ DataGrid 🔠 Issues on DataGrid control question ❔ Issues or PR require more information WinUI 💠 Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.

Comments

@Endt4sk
Copy link

Endt4sk commented Oct 3, 2022

WinUI C++ project can not install CommunityToolkit through NuGet, so How can I use that control in WinUI C++ project?

@ghost ghost added the needs triage 🔍 label Oct 3, 2022
@ghost
Copy link

ghost commented Oct 3, 2022

Hello Endt4sk, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

@michael-hawker
Copy link
Member

@Endt4sk the Toolkit controls aren't built for consumption by C++. Are you using UWP or the Windows App SDK at the moment? (WinUI is a bit ambiguous).

If you're using UWP, we have an example we put together here on how to create a C#/WinRT component to host a Toolkit component for consumption by a C++/WinRT app: https://github.com/CommunityToolkit/Sample-Windows-CppWinRT

However, we haven't attempted to migrate or try this scenario out yet on the Windows App SDK. A similar approach would theoretically be possible, but in either case, there's aren't really well supported scenarios.

It'd be good to upvote and comment on the DataGrid issue on the WinUI repo to let them know you need this scenario for C++ as well here: microsoft/microsoft-ui-xaml#1500

@michael-hawker michael-hawker added question ❔ Issues or PR require more information controls 🎛️ DataGrid 🔠 Issues on DataGrid control WinUI 💠 Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3. and removed needs triage 🔍 labels Oct 4, 2022
@CommunityToolkit CommunityToolkit locked and limited conversation to collaborators Oct 4, 2022
@michael-hawker michael-hawker converted this issue into discussion #4782 Oct 4, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
controls 🎛️ DataGrid 🔠 Issues on DataGrid control question ❔ Issues or PR require more information WinUI 💠 Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.
Projects
None yet
Development

No branches or pull requests

2 participants