ContextMenu.IsOpen 속성

정의

ContextMenu의 표시 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool IsOpen { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public bool IsOpen { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
member this.IsOpen : bool with get, set
Public Property IsOpen As Boolean

속성 값

Boolean

ContextMenu가 표시되면 true이고, 그러지 않으면 false입니다. 기본값은 false입니다.

특성

예제

이 예제에서는 속성을 설정할지 여부를 IsOpen 확인 하는 방법을 보여 집니다 true.

if (cm.IsOpen == true)
{
    cmButton.Content = "The ContextMenu opened and the IsOpen property is true.";
}
If cm.IsOpen = True Then
    cmButton.Content = "The ContextMenu opened and the IsOpen property is true."
End If

설명

설정true되면 IsOpen 마우스 캡처가 해당 하위 트리로 ContextMenu 설정됩니다.

종속성 속성 정보

식별자 필드 IsOpenProperty
메타 데이터 속성 설정 true BindsTwoWayByDefault

적용 대상

추가 정보