다음을 통해 공유


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

속성 값

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

특성

예제

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

if (cm.IsOpen)
{
    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 설정됩니다.

종속성 속성 정보

Item 가치
식별자 필드 IsOpenProperty
메타데이터 속성이 다음으로 설정됩니다. true BindsTwoWayByDefault

적용 대상

추가 정보