SystemCommands 클래스

창 관리에 공통으로 적용되는 라우트된 명령을 정의합니다.

상속 계층 구조

System.Object
  Microsoft.Windows.Shell.SystemCommands

네임스페이스:  Microsoft.Windows.Shell
어셈블리:  Microsoft.Windows.Shell(Microsoft.Windows.Shell.dll)

구문

‘선언
Public NotInheritable Class SystemCommands
public static class SystemCommands
public ref class SystemCommands abstract sealed
[<AbstractClass>]
[<Sealed>]
type SystemCommands =  class end
public final class SystemCommands

SystemCommands 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성정적 멤버 CloseWindowCommand 창을 닫는 명령을 가져옵니다.
Public 속성정적 멤버 MaximizeWindowCommand 창을 최대화하는 명령을 가져옵니다.
Public 속성정적 멤버 MinimizeWindowCommand 창을 최대화하는 명령을 가져옵니다.
Public 속성정적 멤버 RestoreWindowCommand 창을 복원하는 명령을 가져옵니다.
Public 속성정적 멤버 ShowSystemMenuCommand 시스템 메뉴를 표시하는 명령을 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드정적 멤버 CloseWindow 지정한 창을 닫습니다.
Public 메서드정적 멤버 MaximizeWindow 지정된 창을 최대화합니다.
Public 메서드정적 멤버 MinimizeWindow 지정된 창을 최소화합니다.
Public 메서드정적 멤버 RestoreWindow 지정된 창을 복원합니다.
Public 메서드정적 멤버 ShowSystemMenu 지정한 창의 시스템 메뉴를 표시합니다.

위쪽

설명

SystemCommands 클래스의 명령은 Window를 관리하는 공통 명령 집합을 나타냅니다. 이 클래스의 속성은 RoutedCommand 개체를 나타내며 명령의 구현 로직을 제공하지 않습니다. 명령을 CommandBinding과 바인딩하여 명령의 논리를 제공할 수 있습니다. 자세한 내용은 방법: 명령을 지원하지 않는 컨트롤에 명령 후크을 참조하십시오. 또한 SystemCommands 클래스는 지정된 Window에 대한 논리를 구현하는 정적 메서드를 제공합니다. 정적 메서드를 ICommand를 구현하여 대리자를 받아들이는 형식으로 전달할 수 있습니다. 자세한 내용은 InputBinding 클래스의 예제를 참조하십시오.

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

Microsoft.Windows.Shell 네임스페이스

InputBinding

기타 리소스

명령 개요

방법: 명령을 지원하는 컨트롤에 명령 후크