Click or drag to resize

CustomToolAttribute Class

This attribute can be tagged on a class inherits ModernContent. Hummingbird Application will see that class as a custom tool and will be shown in the main menu.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Hummingbird.TestFramework.ExtensibilityCustomToolAttribute

Namespace:  Hummingbird.TestFramework.Extensibility
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
[AttributeUsageAttribute(AttributeTargets.Class)]
public sealed class CustomToolAttribute : Attribute

The CustomToolAttribute type exposes the following members.

Constructors
  NameDescription
Public methodCustomToolAttribute
Initializes a new instance of the CustomToolAttribute class
Top
Properties
  NameDescription
Public propertyEndColor
Gets or sets the end point of the Background color of the Tile.
Public propertyKey
Gets or sets the key of the Custom Tool, which will be used in the main menu.
Public propertyName
Gets or sets the Name of the of the current custom tool.
Public propertyStartColor
Gets or sets the start point of the Background color of the Tile.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Public propertyUseGradientColor
Gets or sets a value indicating whether to use gradient color for the ModernTile.
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToStringOrXml
Converts any Object to string representation in String or XML format.
(Defined by ExtensionMethods.)
Public Extension MethodToXmlString
Converts any Object to string representation in XML format.
(Defined by ExtensionMethods.)
Top
Remarks

Hummingbird application includes some tools such as base64 encoding, xPath validation and regular expression. The Integrated tools can be extended by using this attribute, tagged on a ModernContent class.

The ModernContent class will port the user interface and functionality of the tool, while the properties of this attribute determines how the tool will be displayed in a ModernTile element

You can also set an image used in the Tile, in this case, you should also tag an ImageSourceAttribute on the class.

Please note that resources will be loaded by Hummingbird. When using relative Uri, the resource will be searched in the Hummingbird Application assembly.

For more information and example, please follow the community project on Community Custom Tools

See Also