SystemCommands 類別

定義

定義視窗管理共用的路由指令。

public ref class SystemCommands abstract sealed
public static class SystemCommands
type SystemCommands = class
Public Class SystemCommands
繼承
SystemCommands

備註

類別中的 SystemCommands 命令代表一組管理 Window 的常見命令。 這個類別中的屬性代表 RoutedCommand 物件,而且不會提供 命令的實作邏輯。 您可以使用 系結命令來提供命令 CommandBinding 的邏輯。 如需詳細資訊,請參閱 如何:將命令連結至沒有命令支援的控制項。 或者,類別 SystemCommands 提供靜態方法,以實作指定 Window 之 的邏輯。 您可以將靜態方法傳遞至實作 ICommand 並接受委派的類型。 如需詳細資訊,請參閱 類別中的 InputBinding 範例。

屬性

CloseWindowCommand

取得關閉視窗的指令。

MaximizeWindowCommand

取得最大化視窗的指令。

MinimizeWindowCommand

取得可將視窗最小化的命令。

RestoreWindowCommand

取得還原視窗的指令。

ShowSystemMenuCommand

取得顯示系統功能表的指令。

方法

CloseWindow(Window)

關閉指定的視窗。

MaximizeWindow(Window)

將指定的視窗最大化。

MinimizeWindow(Window)

將指定的視窗最小化。

RestoreWindow(Window)

還原指定的視窗。

ShowSystemMenu(Window, Point)

顯示指定視窗的系統功能表。

適用於

另請參閱