Back to Devexpress

Fluent API Support

windowsforms-117019-cross-platform-app-development-winforms-mvvm-concepts-fluent-api-support.md

latest1.7 KB
Original Source

Fluent API Support

  • Jan 22, 2025
  • 4 minutes to read

Fluent APIs utilize method cascading to relay the instruction context of a subsequent call. By doing so, a Fluent API follows the same natural language rules as those utilized by people. As a result, a well-constructed Fluent API provides more human-friendly code that is easier to perceive and understand.

Tip

To get started with Fluent API concepts, refer to the following article: Code First Fluent API.

The DevExpress MVVM Framework provides extension methods to build Fluent API expressions for any task: from binding simple properties to relating MVVM behaviors with specific events.

Property Binding and UI Triggers

Related article: Data Bindings and Notifications

  • Simple property binding.

  • Binding to nested properties.

  • UI Triggers.

Command Binding

Related article: Commands

  • Parameterized commands with CanExecute conditions.

  • Asynchronous commands.

  • The WithCommand extension allows you to bind a command to one or multiple target UI elements.

  • Command triggers allow you to automatically call specific methods before the target command is executed, after that, or when this command’s CanExecute condition changes.

Attaching Behaviors

Related article: Behaviors

  • Confirmation behavior.

  • Event-To-Command Behaviors

  • Key-To-Command and Keys-To-Command Behaviors