Merge pull request #16 from joseartrivera/joriv/OnLaunchSize
Resize app to appropriate dimensions on first launch
This commit is contained in:
commit
362b4f9d1e
@ -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
|
// For very first launch, set the size of the calc as size of the default standard mode
|
||||||
if (!localSettings->Values->HasKey(L"VeryFirstLaunch"))
|
if (!localSettings->Values->HasKey(L"VeryFirstLaunch"))
|
||||||
{
|
{
|
||||||
appView->PreferredLaunchViewSize = minWindowSize;
|
|
||||||
appView->PreferredLaunchWindowingMode = ApplicationViewWindowingMode::PreferredLaunchViewSize;
|
|
||||||
localSettings->Values->Insert(ref new String(L"VeryFirstLaunch"), false);
|
localSettings->Values->Insert(ref new String(L"VeryFirstLaunch"), false);
|
||||||
|
appView->SetPreferredMinSize(minWindowSize);
|
||||||
|
appView->TryResizeView(minWindowSize);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user