本文介绍了是否有相当于德尔福的行为列表.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我们正在使用Delphi 5和Delphi 2005的开发,并探讨通过Delphi的棱镜去的.NET路线。

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

有相当于德尔福的行为列表一个.NET?

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

对于那些不熟悉的行为列表,这是一个组件,它包含了操作的集合,我们创造,如保存,刷新,负载等每一个动作都可以有一个标题,图像,启用/禁用分配给它。在这之后,你可以指定一个按钮的动作,并且按钮将继承诉讼的标题,图片等,如果你的UI具有可作为两个菜单项,一键保存动作,它们都可以使用相同的动作

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.

推荐答案

的WinForms没有这样的事情打造,但WPF确实有它的命令。见的

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

这篇关于是否有相当于德尔福的行为列表.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 08:04