Skip to main content
All docs
V24.2
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItemCommand.CanExecute(Object) Method

Defines the method that determines whether you can execute the command in its current state.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool CanExecute(
    object parameter
)

#Parameters

Name Type Description
parameter Object

Data used by the command. If the command does not require data, pass null as this parameter.

#Returns

Type Description
Boolean

true if this command can be executed; otherwise, false.

See Also