Back to Devexpress

Command.UpdateUIState(ICommandUIState) Method

corelibraries-devexpress-dot-utils-dot-commands-dot-command-dot-updateuistate-x28-devexpress-dot-utils-dot-commands-dot-icommanduistate-x29.md

latest1.9 KB
Original Source

Command.UpdateUIState(ICommandUIState) Method

Updates the command state.

Namespace : DevExpress.Utils.Commands

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public virtual void UpdateUIState(
    ICommandUIState state
)
vb
Public Overridable Sub UpdateUIState(
    state As ICommandUIState
)

Parameters

NameTypeDescription
stateICommandUIState

An ICommandUIState interface defining the state of a command.

|

Remarks

Use the UpdateUIState method to update the command state created by the Command.CreateDefaultCommandUIState. Then, you can decide whether to perform the action and call the Command.ForceExecute method if required.

See Also

CreateDefaultCommandUIState()

ForceExecute(ICommandUIState)

Command Class

Command Members

DevExpress.Utils.Commands Namespace