How to programmatically maximize a window using LaunchUriAsync in Windows 8?

时光怂恿深爱的人放手 提交于 2020-01-03 05:47:20

问题


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:


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



来源:https://stackoverflow.com/questions/23950284/how-to-programmatically-maximize-a-window-using-launchuriasync-in-windows-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!