Show / Hide Table of Contents

Method SetForegroundWindow

| Edit this page View Source

SetForegroundWindow(Window)

Brings the thread that created the specified window into the foreground and activates the window.

Declaration
public static bool SetForegroundWindow(this Window window)
Parameters
Type Name Description
Window window

The window that should be activated and brought to the foreground.

Returns
Type Description
bool

true if the window was brought to the foreground.

false if the window was not brought to the foreground.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX