Alternates the expanded state assigned to a RadRibbonBar by successive command executions.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
C#
public class ExpandCollapseCommand : CommandBase, IImageListProvider
Inheritance: objectCommandBaseExpandCollapseCommand
Implements:
Constructors
C#
public ExpandCollapseCommand()
Methods
Applies the command's next expanded state to a ribbon bar.
C#
public override object Execute(params object[] settings)
Command arguments; the first argument is used as the command target.
Returns:Overrides:
The first execution targeting a RadRibbonBar sets Expanded to false; subsequent executions alternate the value. The command does not synchronize this toggle with changes made directly to the control's Expanded property.