4.1018 Window
x:Object > DependencyObject > Visual > UIElement > FrameworkElement > Control > ContentControl > Window, IInputElement | |
Window | |
NavigationWindow RibbonWindow | |
(usage) |
<Window> x:Object </Window> |
(description) |
Provides the ability to create, configure, show, and manage the lifetime of windows and dialog boxes. |
(used by) |
Application |
[content property] |
Content |
[name property] |
Name |
[xml lang property] |
Language |
(properties) |
|
AllowsTransparency |
x:Boolean |
(description) |
A value that indicates whether a window's client area supports transparency. |
DialogResult |
x:Nullable(x:Boolean) |
(description) |
The dialog result value, which is the value that is returned from the ShowDialog method. |
[text syntax] |
DialogResultSyntax |
Icon |
ImageSource |
(description) |
A window's icon. |
Left |
x:Double |
(description) |
The position of the window's left edge, in relation to the desktop. |
[text syntax] |
LengthSyntax |
Owner |
Window |
(description) |
The Window that owns this Window. |
ResizeMode |
ResizeMode |
(description) |
The resize mode. |
ShowActivated |
x:Boolean |
(description) |
A value that indicates whether a window is activated when first shown. |
ShowInTaskbar |
x:Boolean |
(description) |
A value that indicates whether the window has a task bar button. |
SizeToContent |
SizeToContent |
(description) |
A value that indicates whether a window will automatically size itself to fit the size of its content. |
TaskbarItemInfo |
TaskbarItemInfo |
(description) |
The Windows 7 taskbar thumbnail for the Window. |
Title |
x:String |
(description) |
A window's title. |
Top |
x:Double |
(description) |
The position of the window's top edge, in relation to the desktop. |
[text syntax] |
LengthSyntax |
Topmost |
x:Boolean |
(description) |
A value that indicates whether a window appears in the topmost z-order. |
WindowStartupLocation |
WindowStartupLocation |
(description) |
The position of the window when first shown. |
WindowState |
WindowState |
(description) |
A value that indicates whether a window is restored, minimized, or maximized. |
WindowStyle |
WindowStyle |
(description) |
A window's border style. |
(events) |
|
Activated |
Occurs when a window becomes the foreground window. |
Closed |
Occurs when the window is about to close. |
Closing |
Occurs directly after Close is called, and can be handled to cancel window closure. |
ContentRendered |
Occurs after a window's content has been rendered. |
Deactivated |
Occurs when a window becomes a background window. |
DpiChanged (4.6.2) |
Occurs after the DPI of the screen on which the Window is displayed changes. |
LocationChanged |
Occurs when the window's location changes. |
SourceInitialized |
This event is raised to support interoperation. |
StateChanged |
Occurs when the window's WindowState property changes. |