如何以编程方式最大限度地在Windows 8中使用LaunchUriAsync窗口? [英] How to programmatically maximize a window using LaunchUriAsync in Windows 8?

查看:145
本文介绍了如何以编程方式最大限度地在Windows 8中使用LaunchUriAsync窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何最大化/最小化启动/电流Windows应用商店的应用程序在Windows 8?



 专用异步作废Button_Click编程方式使用LaunchUriAsync (对象发件人,RoutedEventArgs E)
{
变种选项=新Windows.System.LauncherOptions();
options.TreatAsUntrusted = FALSE;
options.DisplayApplicationPicker = FALSE;
乌里目标=新的URI(MS邮件:);
布尔isSucceed =等待Windows.System.Launcher.LaunchUriAsync(目标,期权);
}


解决方案

有没有一种方法要做到这一点在Windows 8,但Windows 8.1中添加的 DesiredRemainingView 财产LauncherOptions,其中你指定你想怎样启动的应用程序保持在屏幕上(没用,UseHalf,UseMore,UseMinimum和UseNone)。


How do I maximize/minimize launching/current windows store applications programmatically using LaunchUriAsync in Windows 8?

    private async void Button_Click(object sender, RoutedEventArgs e)
    {
        var options = new Windows.System.LauncherOptions();
        options.TreatAsUntrusted = false;
        options.DisplayApplicationPicker = false;
        Uri target = new Uri("ms-mail:");
        bool isSucceed = await Windows.System.Launcher.LaunchUriAsync(target, options);
    }

解决方案

There isn't a way to do this in Windows 8, but Windows 8.1 added the DesiredRemainingView property to LauncherOptions, wherein you indicate how you want the launching app to remain on the screen (UseLess, UseHalf, UseMore, UseMinimum, and UseNone).

这篇关于如何以编程方式最大限度地在Windows 8中使用LaunchUriAsync窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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