Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.Controls.v3.6 Assembly / Xceed.SmartUI.Controls.MenuBar Namespace / MenuItem Class / CloseMenusOnClick Property


In This Topic
    CloseMenusOnClick Property
    In This Topic
    Gets or sets a boolean value indicating if the menu must close when the user clicks it.
    Syntax
    'Declaration
     
    Protected Property CloseMenusOnClick As Boolean
    'Usage
     
    Dim instance As MenuItem
    Dim value As Boolean
     
    instance.CloseMenusOnClick = value
     
    value = instance.CloseMenusOnClick
    protected bool CloseMenusOnClick {get; set;}

    Property Value

    true if the menu must close when the user clicks it; false otherwise.
    Remarks

    If set to true all parent menu items will also be closed.

    Requirements

    Target Platforms: Windows 7, 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