Gets or sets a value that indicates whether a window is activated when first shown.
Assembly: PresentationFramework (in PresentationFramework.dll)
When a window with its Activated event is not raised until a user manually activates the window by selecting it. After the window is selected, it activates and deactivates normally.property set to false is opened, the window is not activated and its
To prevent a window from being activated when it opens, the Show); setting to false after a window is shown has no effect.property must be set to false before the window is shown (by calling
Setting ShowDialog, has no real impact. Although the modal window will not be activated, the modal window will prevent the user from activating any other open application windows.to false on a window that is opened modally, by calling
The following example shows how to use markup to configure a window to be opened without being activated.
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="WindowShowActivatedSnippets.AWindow" ShowActivated="False">
The following example shows how to use code to configure a window to be opened without it being activated.
Available since 3.0