Class ToggleMultiSelectGrid
A view command that toggles a collection view between allowing multiple selections and a single selection only.
Inheritance
System.Object
ToggleMultiSelectGrid
Implements
System.IDisposable
System.Windows.Input.ICommand
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class ToggleMultiSelectGrid : ViewToggleCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
ToggleMultiSelectGrid(IGridSelectionMode)
Creates a new ToggleMultiSelectGrid view command
Declaration
public ToggleMultiSelectGrid(IGridSelectionMode grid)
Parameters
Type | Name | Description |
---|---|---|
IGridSelectionMode | grid | The view implementation that has a single and multi selection capability. Typically a grid implementation. |
Properties
Description
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Overrides
OverlayIconID
Declaration
public override Guid? OverlayIconID { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Overrides
Title
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ToolTip
Declaration
public override string ToolTip { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
InternalCanExecute(Object)
True - Can always be executed as is a view only change
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | True - Can always be executed as is a view only change |
Overrides
InternalExecute(Object)
Sets the views SelectionMode between single or multi-select capability
Declaration
public override void InternalExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Overrides
Implements
System.IDisposable
System.Windows.Input.ICommand