-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Get native Window handle from control #6843
Comments
I think we only have this on a window level now, but you're asking on a control level, right? |
Yes, that's correct. |
@niksedk we've added the |
@PureWeen: thanks for the Window property :) I've added a BoxView to my app created with the default template:
In the
Which seems to make a video player in the whole app window: Any ideas? |
This may be possible once you have the native WinUI control. So if you do I would actually suggest talking to the WinUI experts over on https://github.com/microsoft/microsoft-ui-xaml as I am not sure myself if I know of a proper (or a bit hacky) way to do this. It may also be the case that there is no HWND by default as these may not be "normal" controls and you have to add some sort of special composition or HWND-supporting panel. But again, not sure we can be as helpful as we would like and opening a new issue on how to get a HWND from a UI element in WinUI 3 will be the solution. And then you take that and just use the
|
Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you! |
Description
I would like to port a Winforms desktop app which uses a native lib to render video - so the app should have different code for different platforms, but I was unable to find a way to get an IntPtr Windows handle from e.g. a BoxView.
Public API Changes
I do not know where this functionality should be added...
Intended Use-Case
In Winforms we can do something like this:
It would be very useful to have a similar feature in Maui - if it's not already available.
The text was updated successfully, but these errors were encountered: