Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Collapse]Build an Application
  [Expand]Choose Application UI
   Data Management Controls
  [Expand]Printing and Exporting
  [Collapse]WinForms MVVM
   [Collapse]Concepts
     Conventions and Attributes
     Fluent API Support
     Data Bindings and Notifications
     Commands
     Services
     Behaviors
     Layer Communication. Messenger
     View Management
   [Expand]Design-time Support
   [Expand]Tutorials
  [Expand]Skins
  [Expand]Localization
  [Expand]Right-to-Left Layout
   Redistribution and Deployment
 [Expand]Controls and Libraries
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Fluent API Support

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.

Note

To get started with Fluent API concepts, refer to the following articles.

  • A Look at Fluent APIs
    A Code Project blog post by Sacha Barber that describes what Fluent API is and why you should use it.

  • Code First Fluent API
    The MSDN documentation section that describes Fluent API in the scope of the Entity Framework.

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.

Expanded Property Binding and UI Triggers

Related article: Data Bindings and Notifications

  • Simple property binding.
  • Binding to nested properties.
  • UI Triggers.

Expanded 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.

Expanded Attaching Behaviors

Related article: Behaviors

  • Confirmation behavior.
  • Event-To-Command Behaviors
  • Key-To-Command and Keys-To-Command Behaviors

How would you rate this topic?​​​​​​​