Click or drag to resize
ActionPaletteItem Class
Provides the default implementation for an action palette item.
Inheritance Hierarchy
SystemObject
  Kjs.AppLife.Update.Engine.Core.DesignActionPaletteItem

Namespace: Kjs.AppLife.Update.Engine.Core.Design
Assembly: Kjs.AppLife.Update.Engine.Core.Design (in Kjs.AppLife.Update.Engine.Core.Design.dll) Version: 1.0.0.12 (4.0.0.0)
Syntax
public class ActionPaletteItem

The ActionPaletteItem type exposes the following members.

Constructors
  NameDescription
Public methodActionPaletteItem
Initializes a new instance of the ActionPaletteItem class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initializes the ActionPaletteItem with the specified action type's information.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyActionType
Gets the type of action associated with the ActionPaletteItem.
Public propertyCategory
Gets the palette category of the action.
Public propertyDescription
Gets the palette description of the action.
Public propertyDisplayName
Gets the name for the action displayed in the action palette.
Public propertyImage
Gets the image displayed in the action palette for the action.
Top
Remarks

To create a custom ActionPaletteItem, inherit from this class and provide a public parameterless constructor.

Each ActionPaletteItem describes the appearance of an UpdateAction in the action palette. The DisplayName property contains the name of the action in the palette. The Description property contains the tooltip for the action. The Image property contains the image shown next to the action's name, and the Category property contains the category under which the action appears.

The values of these properties are taken from the following attributes, which can be placed on an UpdateAction:

AttributeEffect
DisplayNameAttributeSpecifies DisplayName. Unless a different name is specified by an ActionBuilder, this name will also be used in the action list
CategoryAttributeSpecifies Category.
DescriptionAttributeSpecifies Description.
ToolboxBitmapAttributeSpecifies Image. Unless a different image is specified by an ActionBuilder, this image will also be used in the action list.

A custom ActionPaletteItem can override the default behavior of these properties.

To link an ActionPaletteItem to an UpdateAction, provide an ActionPaletteItemAttribute on the UpdateAction, specifying the type of the ActionPaletteItem. If the type specified in the ActionPaletteItemAttribute cannot be found, does not inherit from ActionPaletteItem, or does not have a public, parameterless constructor, the default ActionPaletteItem will be used instead.

To specify that an action should not appear in the palette, provide an ActionPaletteItemAttribute on the UpdateAction, specifying for the defaultType parameter in the constructor:

[ActionPaletteItem(false)]

To explicitly specify that an action should use the default palette item, provide an ActionPaletteItemAttribute on the UpdateAction, specifying for the defaultType parameter in the constructor:

[ActionPaletteItem(true)]
See Also