问题
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