다음을 통해 공유


Window.Activate Method

Definition

Attempts to activate the application window by bringing it to the foreground and setting the input focus to it.

public:
 virtual void Activate() = Activate;
void Activate();
public void Activate();
function activate()
Public Sub Activate ()

Remarks

If you use the default app templates from Microsoft Visual Studio, Window.Activate is part of the initial code in the app.xaml code-behind file. Specifically, Activate is called from the default OnLaunched override.

Applies to

See also