src/Misc/EFTools/EntityDesignExtensibility/EntityDesignerCommand.cs
// <summary>
//     Delegate which is called when determining whether to show or enable this command for a particular selection
// </summary>
// <param name="selectedElement">The XML object corresponding to the selection</param>
// <param name="docView">The document view corresponding to the selection</param>
// <param name="singleViewModelSelection">The selection in the view model</param>
// <param name="propertiesCompartment">If this selection is within an EntityType, this specifies the Properties compartment within that EntityType</param>
// <param name="isSingleSelection">Specifies whether the selection is over multiple objects or not</param>
// <returns>a Tuple where the first boolean corresponds to whether the command is shown, and the second corresponds to whether the command is enabled</returns>
Delegate which is called when determining whether to show or enable this command for a particular selection
Delegate which is called when determining whether to show or enable this command for a particular selection
[DebuggerStepThrough]
        internal Tuple<bool, bool> CanExecute(
            XObject selectedElement, object docView, object singleViewModelSelection, object propertiesCompartment, bool isSingleSelection)
        {
            return _canExecute == null
                       ? new Tuple<bool, bool>(true, true)
                       : _canExecute(selectedElement, docView, singleViewModelSelection, propertiesCompartment, isSingleSelection);
        }
[ DebuggerStepThrough ] internal Tuple < bool , bool > CanExecute ( XObject selectedElement , object docView , object singleViewModelSelection , object propertiesCompartment , bool isSingleSelection ) { return _canExecute == null ? new Tuple < bool , bool > ( true , true ) : _canExecute ( selectedElement , docView , singleViewModelSelection , propertiesCompartment , isSingleSelection ) ; }
Delegate which is called when determining whether to show or enable this command for a particular selection
Delegate which is called when determining whether to show or enable this command for a particular selection
a Tuple where the first boolean corresponds to whether the command is shown, and the second corresponds to whether the command is enabled
a Tuple where the first boolean corresponds to whether the command is shown and the second corresponds to whether the command is enabled
selectedElement
XObject
The XML object corresponding to the selection
The XML object corresponding to the selection
docView
object
The document view corresponding to the selection
The document view corresponding to the selection
singleViewModelSelection
object
The selection in the view model
The selection in the view model
propertiesCompartment
object
If this selection is within an EntityType, this specifies the Properties compartment within that EntityType
If this selection is within an EntityType this specifies the Properties compartment within that EntityType
isSingleSelection
bool
Specifies whether the selection is over multiple objects or not
Specifies whether the selection is over multiple objects or not