1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3
4#include "pch.h"
5#include "Launch.h"
6#include "Launch.g.cpp"
7#include "EnumEntry.h"
8#include "LaunchViewModel.h"
9
10#include <LibraryResources.h>
11
12using namespace winrt::Windows::UI::Xaml;
13using namespace winrt::Windows::UI::Xaml::Navigation;
14using namespace winrt::Windows::Foundation;
…lines 15–37 unchanged (23 lines)
38 Automation::AutomationProperties::SetHelpText(CenterOnLaunchToggle(), RS_(L"Globals_CenterOnLaunch/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
39 }
40
41 void Launch::OnNavigatedTo(const NavigationEventArgs& e)
42 {
43 _ViewModel = e.Parameter().as<Editor::LaunchViewModel>();
44 auto innerViewModel{ winrt::get_self<Editor::implementation::LaunchViewModel>(_ViewModel) };
45 /* coroutine dispatch */ innerViewModel->PrepareStartOnUserLoginSettings();
46 }
47}
48