How can I use datagrid control in WinUI c++? #4782
-
WinUI C++ project can not install CommunityToolkit through NuGet, so How can I use that control in WinUI C++ project? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 🙌 |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
@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 sce…