public:
void Activate()
The window is presented if the app is the foreground window. If the app has more than one window, the activating window is presented when the app is set to the foreground.
C++
void MyCoreWindowEvents::Run() // this is an implementation of IFrameworkView::Run() used to show context
{
CoreWindow::GetForCurrentThread()->Activate();
/...
CoreWindow::GetForCurrentThread()->Dispatcher->ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit);
}
Namespace: Windows.UI.Core
Metadata: windows.winmd