BCGControlBar Library for .NET
CanExecuteDefaultCommand Property (ToolbarMenuButton)




Set to true in order to enable a popup menu button (button, which displays popup menu) also execute a command. In this case the button will be split into two parts - image (or text) and arrow. Click on arrow opens popup menu, click on image executes a command.
Syntax
'Declaration
 
Public Overrides Property CanExecuteDefaultCommand As Boolean
'Usage
 
Dim instance As ToolbarMenuButton
Dim value As Boolean
 
instance.CanExecuteDefaultCommand = value
 
value = instance.CanExecuteDefaultCommand
public override bool CanExecuteDefaultCommand {get; set;}
public: __property bool get_CanExecuteDefaultCommand() override;
public: __property void set_CanExecuteDefaultCommand( 
   bool value
) override;
public:
property bool CanExecuteDefaultCommand {
   bool get() override;
   void set (    bool value) override;
}
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

Reference

ToolbarMenuButton Class
ToolbarMenuButton Members
Base Implementation in CanExecuteDefaultCommand

Send Feedback