Поделиться через


Microsoft.Windows.Design.Metadata Namespace

Provides an attribute table for applying custom designer attributes to controls and elements.

Register your customer FeatureProvider implementations by implementing the IRegisterMetadata interface in a separate assembly dedicated to design-time metadata. Use the AttributeTableBuilder class to build an attribute table. Call the AddAttributeTable(AttributeTable) method in your Register() implementation to enable your designer feature.

Classes

  Class Description
Public class AttributeCallbackBuilder An instance of this class is passed to callback delegates to lazily populate the attributes for a type.
Public class AttributeTable A table of metadata attributes for defining design-time appearance and behavior.
Public class AttributeTableBuilder Creates an attribute table that defines design-time metadata.
Public class AttributeTableContainer Provides a collection of AttributeTable instances.
Public class AttributeTableValidationException Raised when the metadata provided in an AttributeTable does not match properties, methods and events on existing types.
Public class ProvideMetadataAttribute Represents a class that provides metadata.

Structures

  Structure Description
Public structure EventIdentifier Represents an event, which is independent of the platform.
Public structure PropertyIdentifier Represents a property, which is independent of the platform.
Public structure TypeIdentifier Identifies a type, which is independent of the platform.

Interfaces

  Interface Description
Public interface IProvideAttributeTable Defines a class that provides an attribute table.

Delegates

  Delegate Description
Public delegate AttributeCallback Called when attributes are needed for a type.