Skip to content
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

WinUI 3/.Net5 Support #54

Open
AkshayFT opened this issue Jul 25, 2021 · 10 comments
Open

WinUI 3/.Net5 Support #54

AkshayFT opened this issue Jul 25, 2021 · 10 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@AkshayFT
Copy link

AkshayFT commented Jul 25, 2021

I'm developing a windows application using WinUI3 and .Net5.0. Unable to use this control. Are there any alternatives available or should link any WPF related dlls?

@AkshayFT AkshayFT changed the title WinUI 3 Support WinUI 3/.Net5 Support Jul 25, 2021
@NogginBops NogginBops added enhancement New feature or request question Further information is requested labels Mar 21, 2022
@PhilPJL
Copy link

PhilPJL commented May 16, 2022

WinUI 3 support gets my vote. I've currently taken on an aging WinForms app that uses GLControl 3.x. Would be nice to start investigating migration to WinUI but without this not much point.

@NogginBops
Copy link
Member

What doesn't work? What are the symptoms?
Are there any error messages?

@PhilPJL
Copy link

PhilPJL commented May 17, 2022

Are you saying that the GLWpfControl should work in WinUI3? If so then that's good and I'll give it a try. I was assuming perhaps incorrectly that WinUI3 needs specific controls.

@NogginBops
Copy link
Member

I don't know much about WinUI3, but it did look like you could use WPF control in it. But maybe I'm mistaken.

@PhilPJL
Copy link

PhilPJL commented May 21, 2022

Unfortunately you can't microsoft/microsoft-ui-xaml#5866
You can embed WPF in WinForms and vice-versa, and apparently Xaml islands are planned to allow embedding WinUI in WPF, but not the other way around.
I assume a WinUI version of GLControl will therefore be useful.

@JuandreG
Copy link

Any news on this?

a GLControl for WinUI would be awesome.

@NogginBops
Copy link
Member

WinUI doesn't allow you to create an OpenGL context, not sure if there are any workarounds for this. Maybe there is, but I don't know of one.

@malstraem
Copy link

Interoperability possible using WGL_NV_DX_interop2 that widely supported.

@NogginBops
Copy link
Member

Interoperability possible using WGL_NV_DX_interop2 that widely supported.

My understanding was that even creating an OpenGL context isn't possible in WinUI 3? But I haven't really looked into it so idk any details.

@malstraem
Copy link

@NogginBops

creating an OpenGL context isn't possible in WinUI 3

Same as for WPF 🤓

In any case you need to implement the interaction between OpenGL and DirectX. With WinUI you need to get render target from SwapChainPanel and create OpenGL framebuffer using upper mentioned extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants