xaf-controllers
Installation
SKILL.md
XAF: Controllers & Actions
Controller Types
| Type | Base Class | Typical Use |
|---|---|---|
ViewController |
Controller |
Any view; most common base |
ViewController<TView> |
ViewController |
Constrained to specific view type |
ObjectViewController<TView, TObject> |
ViewController<TView> |
View + business object type — no manual casting |
WindowController |
Controller |
Window-level; not tied to a view |
ApplicationController |
Controller |
Global; activates for all views |
Generic shorthand:
// Instead of TargetViewType + TargetObjectType + casting:
public class MyController : ObjectViewController<DetailView, Employee> {
// View is DetailView, ViewCurrentObject is Employee — no cast needed
}