If you want to add additional features and functionality to an existing Action Control do you have to recreate the server control from scratch by inheriting one of the three base action classes?
You do not have to. You can inherit directly from any of the server control classes in the Microsoft.ContentManagement.WebControls.ConsoleControls
namespace. Because all the default server controls are themselves sub-classed from the three base action classes, custom controls inheriting from them also become heir to the base action's properties, methods,
and events.
One of the most sought-after features in the community is the modification of the Decline
action to prompt editors for a reason. The advantage of creating a server control that inherits from the DeclineAction
class is that we don't have to worry about writing the code that does the work of declining the posting. All we need to do is to add a dialog box for editors to enter remarks.
In this...