.NET Framework (current version)
Gets or sets a value that indicates whether the ContextMenu is visible.
PresentationFramework (in PresentationFramework.dll)
Public Property IsOpen As Boolean
When IsOpen is set to true, mouse capture is set to the ContextMenu and its subtree.
This example shows how to check to determine whether the IsOpen property is set to true.
If cm.IsOpen = True Then
cmButton.Content = "The ContextMenu opened and the IsOpen property is true."
Return to top
Available since 3.0