CoreWindow.Activate Method

Activates the window.

Syntax

public:
void Activate()  

Remarks

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.

Example

C++

void MyCoreWindowEvents::Run() // this is an implementation of IFrameworkView::Run() used to show context
{
    CoreWindow::GetForCurrentThread()->Activate();

    /...

    CoreWindow::GetForCurrentThread()->Dispatcher->ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit);
}  

Requirements

Namespace: Windows.UI.Core

Metadata: windows.winmd

See also

Reference

CoreWindow Class

CoreWindow Members

Windows.UI.Core Namespace