Window.Activate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.