Version

GetCloseWhenClicked Method

Gets the value of the attached CloseWhenClicked DependencyProperty.
Syntax
'Declaration
 
Public Shared Function GetCloseWhenClicked( _
   ByVal d As DependencyObject _
) As Boolean
public static bool GetCloseWhenClicked( 
   DependencyObject d
)

Parameters

d
The object whose value is to be returned
Remarks

This attached property can be set to true on certain elements such as ButtonBase derived classes and MenuItem. When set to true on one of these element types within the ApplicationMenu2010 and the element is clicked, the ApplicationMenu2010 that contains the element will be closed.

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