-
Notifications
You must be signed in to change notification settings - Fork 706
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
Question: How to add Grid Splitter in c++/winrt desktop app? #4509
Comments
I also miss the splitter in WinUI using WinRT C++. It is an important design feature for Win32 applications. As far as I know, this functionality is not yet available. It would be nice if this functionality could be added to the roadmap so that we have an idea of when we can expect it.
The |
@michael-hawker FYI. @jevansaks or @kennykerr GridSplitter is defined in a managed DLL, can you implement a winrt projection with a managed binary? |
@StephenLPeters @jevansaks there are too many things we'd have to work around to be a Windows Runtime Component, it's too restrictive. I investigated this as part of our 7.0 release and commented on that here: CommunityToolkit/WindowsCommunityToolkit#3145 (comment) We have been asked on how to include our components using C++ before as well, we have an open issue for 7.1 about writing a sample on how to do this: CommunityToolkit/WindowsCommunityToolkit#3704 I know in the past I've created a C# project, added a Page and referenced Toolkit controls from there and then loaded that page in a C++/CX app (kind of like a XAML Islands type scenario). This of course loads .NET still, but makes it possible to use the controls. The tooling wasn't the best at the time, but it was a few years ago. GridSplitter wouldn't really work on its own here though, considering it's one of the oldest things in the Toolkit and is part of WPF, it would be a good control for WinUI to look into including in the future. I guess there's a good question here around how this works in the WinUI 3 world, is there still such a thing as a Windows Runtime Component? I think @marb2000 mentioned there's a transitive concept of something similar still? |
WinUI3 doesn't change the landscape of WinRT components like this -- WinRT is the currency for components that can be interoperated across different language boundaries. The thing that might get better is that with Cs/WinRT we have the opportunity to bring C#-implemented components up to parity with native components in terms of all of the limitations that are currently imposed on C# when you try to compile with the WinRT Component flag. But I am guessing that they have only implemented consuming projection support so far and not producing projection support -- but @scott1js would know the state of the world there. |
I've published our C++ sample showing how to use Toolkit components here: https://github.com/CommunityToolkit/Sample-Windows-CppWinRT |
I found GridSplitter in Windows Community Toolkit but it dose not support c++/winrt desktop app. what should i do?
The text was updated successfully, but these errors were encountered: