What problem does it solve?
Provides comprehensive patterns for creating XAF Controllers and Actions across ViewController variants, lifecycle, actions, and dialogs to help developers implement robust, reusable UI logic in DevExpress XAF apps.
Core Features & Use Cases
- Controller types: ViewController, ViewController<TView>, ObjectViewController<TView, TObject>, WindowController, ApplicationController.
- Controller lifecycle: OnActivated, OnDeactivated, OnViewControlsCreated, OnViewShown, with proper subscription/unsubscription patterns.
- Action types: SimpleAction, ParametrizedAction, SingleChoiceAction, PopupWindowShowAction, and their usage patterns.
- Dialog handling: DialogController setup (SaveOnAccept, CanCloseWindow, Accepting/Cancelling) and usage in popups.
- Chaining popups: Sequential popups and manual show scenarios to compose complex workflows.
- View/update patterns: ObjectChanged, CurrentObjectChanged, and view refresh patterns to keep UI in sync.
- Patterns for Frame/NestedFrame: Accessing frames and nested frames for Master-Detail scenarios.
- Activation/Enabled states: Configuring Active/Enabled/Visibility of actions based on view state.
- Best practices: Memory leaks prevention and disposal guidance from xaf-memory-leaks reference.
Quick Start
Install and integrate the xaf-controllers skill into your XAF project to bootstrap controllers and actions across platforms.