How to programmatically maximize a window using La

2019-06-13 17:17发布

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);
    }

1条回答
做个烂人
2楼-- · 2019-06-13 17:57

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).

查看更多
登录 后发表回答