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

希望能修复一下依赖CoreWindow UI对象显示位置的BUG #23

Open
Gaoyifei1011 opened this issue Nov 13, 2023 · 1 comment
Open

Comments

@Gaoyifei1011
Copy link
Contributor

希望能修复一下依赖CoreWindow UI对象显示位置的BUG

8159eee902b2d8581e017258b36773dc

我的临时解决方案:CoreWindow显示的位置在坐标的(0,0)处,同时CoreWindow的大小跟随应用窗口保持一致即可

@Gaoyifei1011
Copy link
Contributor Author

我的临时解决方案

1.获取托管 CoreWindow 的 CoreWindowHostWindow 窗口实例
2.让 CoreWindowHostWindow 与当前应用的激活窗口的大小和位置保持一致(不知道有没有监听激活窗口发生变化的事件)
3.修改 CoreWindow 窗口的位置为 (0,0),大小与 CoreWindowHostWindow 的大小保持一致即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant