Skip to main content
A newer version of this page is available. .

IModelDisableReasons Interface

The DisableReasons node lists the disabling reasons for an Action, specifying a definition for each of them.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

[ImageName("ModelEditor_Actions_DisableReasons")]
public interface IModelDisableReasons :
    IModelNode,
    IModelList<IModelReason>,
    IList<IModelReason>,
    ICollection<IModelReason>,
    IEnumerable<IModelReason>,
    IEnumerable

The following members return IModelDisableReasons objects:

Remarks

The ActionBase.Enabled property returns a collection of key reason/value pairs. When all the keys in this collections have true as a value, an Action is enabled. When an Action is disabled, a hint with the description of the disabling reason will appear. The reason is specified by the corresponding key.

By default, this node contains several reasons. You can use them when disabling an Action. If you specify a new reason in the Enabled.SetItemValue method call, specify the definition for it. To do this, add a new reason via the DisableReasons node’s context menu or in code, and specify its IModelReason.Id and IModelReason.Caption properties.

This interface is a part of the Application Model infrastructure. You do not need to implement this interface in most cases.

The IModelDisableReasons node represents a list of the IModelReason nodes.

See Also