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

How do I obtain the DesktopSiteBridge object in an instance of the WinUI 3 Window class? #10082

Open
Gaoyifei1011 opened this issue Oct 18, 2024 · 0 comments
Labels
needs-triage Issue needs to be triaged by the area owners

Comments

@Gaoyifei1011
Copy link

Gaoyifei1011 commented Oct 18, 2024

How do I obtain the DesktopSiteBridge object in an instance of the WinUI 3 Window class?

-------------------------------

如何获取 WinUI 3 Window 类实例下的 DesktopSiteBridge 对象?


WinUI 3 的 Window 类的实例是对 DesktopWindowXamlSource 创建窗口的一个高级包装,如何在 Window 类实例中获取 DesktoSiteBridge 对象?我在 WinUI 3 源代码中发现了 IContentIslandPartner 接口,通过这个接口可以把 ContentIsland 对象转换为 DesktopSiteBridge 对象,请问一下这个接口该怎么实现呢?

-------------------------------

The Window class instance of WinUI 3 is a high-level wrapper for the DesktopWindowXamlSource creation Window. How to obtain the DesktoSiteBridge object in the Window class instance? I found IContentIslandPartner interface in WinUI 3 source code, through which ContentIsland object can be converted to DesktopSiteBridge object, may I ask how to implement this interface?


Image

ctl::ComPtr<ixp::IContentIslandPartner> contentIslandPartner;

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant