From 531a8a1b7bd169bb2fb62a929a4a74b457f49172 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Tue, 12 Feb 2019 13:50:09 -0800 Subject: [PATCH] Use TryResizeView to resize calc on first launch --- src/Calculator/App.xaml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Calculator/App.xaml.cpp b/src/Calculator/App.xaml.cpp index 90e504da..74cf2a9d 100644 --- a/src/Calculator/App.xaml.cpp +++ b/src/Calculator/App.xaml.cpp @@ -255,9 +255,9 @@ void App::OnAppLaunch(IActivatedEventArgs^ args, String^ argument) // For very first launch, set the size of the calc as size of the default standard mode if (!localSettings->Values->HasKey(L"VeryFirstLaunch")) { - appView->PreferredLaunchViewSize = minWindowSize; - appView->PreferredLaunchWindowingMode = ApplicationViewWindowingMode::PreferredLaunchViewSize; localSettings->Values->Insert(ref new String(L"VeryFirstLaunch"), false); + appView->SetPreferredMinSize(minWindowSize); + appView->TryResizeView(minWindowSize); } else {