Behavior.DisableAllCommands 속성

정의

MenuCommand 개체를 비활성화해야 하는지 여부를 나타내는 값을 가져옵니다.

public:
 virtual property bool DisableAllCommands { bool get(); };
public virtual bool DisableAllCommands { get; }
member this.DisableAllCommands : bool
Public Overridable ReadOnly Property DisableAllCommands As Boolean

속성 값

Boolean

true 디자이너가 수신하는 모든 MenuCommand 개체에 활성 상태인 경우 Enabled = false Behavior 로 설정된 상태가 있으면 이고, 그렇지 않으면 . false입니다.

설명

true 속성 값은 DisableAllCommands 이 동작이 활성 상태일 때 디자이너가 받는 모든 MenuCommand 개체의 상태를 사용하지 않도록 설정해야 했음을 나타냅니다BehaviorService.

이 속성은 DisableAllCommands 메서드와 함께 FindCommand 작동하므로 문자 모양과 동작 간의 상호 작용을 사용자 지정할 수 있습니다. 다음 표에서는 특정 MenuCommand호출의 FindCommand 결과를 요약합니다.

DisableAllCommandstrue인 경우 DisableAllCommandsfalse인 경우
적중 테스트 문자 모양에 할당된 동작이 있습니다. 지정된 command ID IMenuCommandServiceMenuCommandMenuCommand 이 있는 경우 비활성화되고 반환됩니다. 그렇지 않으면 null이 반환됩니다. FindCommand 는 동작에 대해 호출되고, 발견되면 동작이 MenuCommand 반환됩니다. 그렇지 않으면 IMenuCommandService.FindCommand 지정된 command ID 결과가 반환됩니다.
적중 테스트 문자 모양에 할당된 동작이 없습니다. IMenuCommandService.FindCommand 지정된 command ID 결과와 함께 반환됩니다. IMenuCommandService.FindCommand 지정된 command ID 결과와 함께 반환됩니다.

상속자 참고

기본 구현에서는 항상 false을 반환합니다.

적용 대상

추가 정보