松开全屏,而不是部分可见 [英] Unsnap to fullScreen instead of partially visible

查看:69
本文介绍了松开全屏,而不是部分可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在论坛中搜索过,但无法真正找到答案:

I've searched through the forums, but couldn't really find an answer to this:

我们是通过外部支付提供商开发支付Windows 8.1应用程序,在用户完成后,返回我们的应用程序。

We're developing a Windows 8.1 app with payments through an external paymentprovider which, after the user is done, returns to our app.

我们已经有了这个流程,即:用户启动交易,它启动Internet Explorer,我们的应用程序被"抢购"到一边。在交易(或取消)之后,我们使用协议返回应用程序。这也有效。

We've got this flow working, i.e.: the user starts a transaction, which launches Internet Explorer and our app gets 'snapped' to the side. After the transaction (or cancellation) we use a protocol to return to the app. this also works.

当我们返回时,我们使用:

When we return, we use:

Windows.UI.ViewManagement。 ApplicationView.tryUnsnap();

Windows.UI.ViewManagement.ApplicationView.tryUnsnap();

然而,这并没有完全解开我们的应用程序,因为Internet Explorer在较小的快照模式下仍然可见。

However, this does not fully unsnap our app, since Internet Explorer is still visible in a smaller snap-mode.

问题:我们有什么方法可以解开ToFullScreen()?

Question: Is there any way we can unsnapToFullScreen() ?

亲切的问候,

Anthony Donker

Anthony Donker




推荐答案

不,应用程序没有对布局的这种控制。这取决于用户。 Windows 8.1不支持显式的快照视图。

No, apps don't have this sort of control over the layout. That is up to the user. Windows 8.1 doesn't support an explicit snapped view.

您可以尝试在应用程序的WebView中导航到它,而不是启动外部浏览器。无法保证您的协议启动将返回到您的应用。理论上其他人可以注册它,我相信一些浏览器
只能启动已知的协议。

You might try navigating to the its within a WebView in your app rather than launching an external browser. There is no guarantee that your protocol launch will get back to your app. In theory somebody else could register it, and I believe that some browsers will only launch known protocols.


这篇关于松开全屏,而不是部分可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆