devexpress-xaf-controllers

Implement DevExpress XAF controllers and actions with framework-aligned APIs.

39|7|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/DevExpress/agent-skills --skill devexpress-xaf-controllers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devexpress-xaf-controllers
Source: https://github.com/DevExpress/agent-skills/tree/main/plugins/dx-xaf/skills/devexpress-xaf-controllers
Command: npx skills add https://github.com/DevExpress/agent-skills --skill devexpress-xaf-controllers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the guesswork and repetitive boilerplate work of implementing custom UI logic, buttons, menus, and user interactions in DevExpress XAF applications, ensuring you use correct framework APIs and avoid common implementation pitfalls.

Core Features & Use Cases

  • Comprehensive Controller Guidance: Covers all core XAF controller types including ViewController, ObjectViewController<ViewType, ObjectType>, and WindowController, with lifecycle best practices.
  • Full Action Configuration Support: Provides examples and rules for all major action types (SimpleAction, SingleChoiceAction, PopupWindowShowAction, ParametrizedAction) and ActionAttribute usage on business classes.
  • Real-World Use Case: For example, if you need to add a "Mark Complete" button to a Task List View that only appears for incomplete tasks and requires multiple selections, this Skill provides the exact code, scope configuration, and validation logic to implement it correctly.

Quick Start

Use the devexpress-xaf-controllers skill to add a "Filter by Status" dropdown action to your XAF Task List View that filters the displayed tasks when a user selects a status option.

Frequently Asked Questions about devexpress-xaf-controllers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a custom button to a DevExpress XAF View?

To add a custom button in DevExpress XAF, implement a ViewController and configure an Action such as SimpleAction or PopupWindowShowAction. This provides the exact code and lifecycle management needed for production-ready UI interactions.

What is the best way to filter a List View using a dropdown in XAF?

Filtering a List View via a dropdown in XAF is achieved by adding a SingleChoiceAction to a ViewController. The action executes filtering logic when a user selects a status option, applying framework-aligned APIs to update the displayed data.

How do I manage Controller lifecycle and unsubscribe events in XAF?

Managing Controller lifecycle in XAF requires proper event unsubscription during the View closing process. Following framework best practices ensures UI logic components avoid memory leaks and maintain stable interactions across application sessions.

Can I use dependency injection with XAF Controllers in .NET 8?

Yes, XAF Controllers support dependency injection in .NET 8+ applications. This allows you to inject required services directly into your UI logic components, following modern framework best practices for action configuration and scope definition.

How do I show a modal popup window from an XAF Controller?

To show a modal popup window from an XAF Controller, configure a PopupWindowShowAction. This action type manages the popup view handling and user interactions, providing the framework-aligned code necessary for complex UI logic execution.

When should I use a WindowController instead of a ViewController in XAF?

Use a WindowController in XAF for UI logic that applies to the entire window, while ViewController targets specific Views. Selecting the correct controller type ensures proper scope definition and action execution for your application interactions.