SystemCommands Class
TOC
Collapse the table of content
Expand the table of content

SystemCommands Class

.NET Framework (current version)
 

Defines routed commands that are common to window management.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

System.Object
  System.Windows.SystemCommands

public static class SystemCommands

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticCloseWindowCommand

Gets a command that closes a window.

System_CAPS_pubpropertySystem_CAPS_staticMaximizeWindowCommand

Gets a command that maximizes a window.

System_CAPS_pubpropertySystem_CAPS_staticMinimizeWindowCommand

Gets a command that maximizes a window.

System_CAPS_pubpropertySystem_CAPS_staticRestoreWindowCommand

Gets a command that restores a window.

System_CAPS_pubpropertySystem_CAPS_staticShowSystemMenuCommand

Gets a command that displays the system menu.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCloseWindow(Window)

Closes the specified window.

System_CAPS_pubmethodSystem_CAPS_staticMaximizeWindow(Window)

Maximizes the specified window.

System_CAPS_pubmethodSystem_CAPS_staticMinimizeWindow(Window)

Minimizes the specified window.

System_CAPS_pubmethodSystem_CAPS_staticRestoreWindow(Window)

Restores the specified widow.

System_CAPS_pubmethodSystem_CAPS_staticShowSystemMenu(Window, Point)

Displays the system menu for the specified window.

The commands in the SystemCommands class represent a set of common commands that manage a Window. The properties in this class represent RoutedCommand objects and do not provide the implementation logic for the command. You can provide the logic for a command by binding the command with a CommandBinding. For more information, see How to: Hook Up a Command to a Control with No Command Support. Alternatively, the SystemCommands class provides static methods that implement the logic for the specified Window. You can pass a static method to a type that implements ICommand and that accepts a delegate. For more information, see the example in the InputBinding class.

.NET Framework
Available since 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft