Version

GetStaysOpenOnClick Method

Gets the value of the StaysOpenOnClick attached dependency property which determines whether the click of a button type tool will cause the menu to close.
Syntax
'Declaration
 
Public Shared Function GetStaysOpenOnClick( _
   ByVal d As DependencyObject _
) As Boolean
public static bool GetStaysOpenOnClick( 
   DependencyObject d
)

Parameters

d
Remarks

By default clicking on a button type tool within a menu will cause the menu to close. There are scenarios where you may want the menu to remain open. To allow that set this attached property on each tool within the MenuTool that should not close the menu when clicked. The menu will still close for other cases such as clicking outside the menu dropdown.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also