有没有办法以编程方式启动应用程序,使其以快照视图启动? [英] Is there any way to programmatically launch an app so that it starts in a snapped view?

查看:28
本文介绍了有没有办法以编程方式启动应用程序,使其以快照视图启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Windows.System.Launcher.LaunchUriAsync 在适用于 Windows 8 的 JavaScript 应用程序中启动 URL,但我希望它以快照视图启动.有没有办法做到这一点?

I want to launch a URL in my JavaScript app for Windows 8 using Windows.System.Launcher.LaunchUriAsync, but I want it to start in a snapped view. Is there any way to do this?

推荐答案

您不能以更多方式启动应用程序,也不能以该模式启动另一个应用程序.需要注意的一个关键事项是,根据屏幕的方向或分辨率,快照视图甚至可能无法实现.此外,根据用户负责的理念,切换到快照模式应该是他/她的选择.

You can't start an app in snapped more or cause another to be started in that mode. One key thing to note is that a snapped view might not even be possible depending on the orientation or resolution of the screen. Additionally, with the philosophy of the user being in charge, it should be his/her choice to move to snapped mode.

您可以通过 TryUnsnap;但是,指南确实指出

让用户掌控.不要以编程方式取消您的应用程序以获取用户的注意力.Unsnapping 应仅保留用于当用户尝试使用不可用的功能时的情况在捕捉状态.如果您的应用程序已捕捉所有页面的视图应用程序,您根本不需要以编程方式取消对齐.

Put the user in control. Don't programmatically unsnap your app to get the user's attention. Unsnapping should be reserved only for situations when the user tries to use a feature that is not available in the snapped state. If your app has snapped views for all pages in the app, you shouldn't need to programmatically unsnap at all.

不要添加 UI 控件来以编程方式取消对齐您的应用.分离器应用程序之间始终存在,并让用户随时取消对齐他们想要.

Don't add UI controls to programmatically unsnap your app. The splitter between the apps is always present and lets the user unsnap whenever they want to.

这篇关于有没有办法以编程方式启动应用程序,使其以快照视图启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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