Viewcontrollers apply to one screen or all now, in some cases it's easy to make the usable for mutiple screen.
Look at this issue for more info : http://www.devexpress.com/Support/Center/p/Q93907.aspx
Proposed Solution:
Ability to select mutiple views from the designer
Core - Make it possible to activate the same ViewController or Action for multiple Views or target object types
Answers approved by DevExpress Support
We have implemented the functionality described in this ticket. It will be included in our next update(s).
Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.
You can pass multiple View identifiers to the ViewController.TargetViewId and ActionBase.TaregetViewId properties. These properties accept a semicolon-separated list now. The Controller/Action will be activated for each listed View.
For alternative options, see How to implement a controller that will work for more than one target object type.
- v14.1.3Download Official Update
Hello Xavier,
I have to decline your suggestion as we do not have immediate plans to extend the ViewController class to make it possible to select multiple object types or View identifiers, because there are already suitable solutions for this task in the current version.
You can either use the solution from the How to implement a controller that will work for more than one target object type (Example) example or deactivate your controller based on your custom conditions as described in the http://community.devexpress.com/blogs/eaf/archive/2011/07/04/best-practices-of-creating-reusable-xaf-modules-by-example-of-a-view-variants-module-extension.aspx walk through. I hope you find this information helpful.
See Also:
Designers.ViewController - allow controllers to have an interface as a target object type