Skip to main content

MetadataBuilder<T>.CommandFromMethod(Expression<Action<T>>) Method

Returns a command method metadata builder for a method from which the command property is to be generated.

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v23.2.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

public CommandMethodMetadataBuilder<T> CommandFromMethod(
    Expression<Action<T>> methodExpression
)

Parameters

Name Type Description
methodExpression Expression<Action<T>>

A lambda expression which specifies a command method.

Returns

Type Description
CommandMethodMetadataBuilder<T>

The command method metadata builder.

Remarks

POCO mechanism allows you to generate commands from methods. The generating mechanism can be customized using metadata builders. The command method metadata builder that is returned by the CommandFromMethod method provides a number of customization settings.

See Also