views:

595

answers:

1

We're currently using Delphi 5 and Delphi 2005 for development, and investigate of going the .NET route via Delphi Prism.

Is there a .NET equivalent to Delphi's ActionList?

For those not familiar with ActionList, it's a component that contains a collection of actions that we create, e.g. Save, Refresh, Load, etc. Each action can have a caption, image, enable/disable assign to it. After that, you can assign a button to an action, and the button will inherit the action's caption, image, etc, and if you UI has the save action available as both a menu item and a button, they can both use the same action.

+2  A: 

WinForms do not have such a thing build in, but WPF does with its commands. See http://www.microsoft.com/belux/msdn/nl/community/columns/jdruyts/wpf_commandpattern.mspx

Lars Truijens