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


Microsoft.Windows.Design Namespace

Provides basic foundation for any designer through a service and data backplane, and through manipulation of metadata.

The Microsoft.Windows.Design namespace provides classes for managing state in a designer. State is represented by the ContextItem class. Behavior is specified by services, which are managed by a ServiceManager. The EditingContext holds all the designer's state information. Use the SubscribeContextCallback<TContextItemType> to be notified when a context item changes.

Classes

  Class Description
Public class AssemblyReferences Infrastructure. A context item that maintains the set of references the designer is using to resolve type information.
Public class ContextItem Represents a single piece of state in the designer.
Public class ContextItemManager Maintains a set of context items.
Public class DataContextValueSourceAttribute Enables a designer to determine the data context inheritance in the visual tree for a particular property.
Public class DisplayPropertyAttribute Determines the property to use when displaying an instance of an object in a designer.
Public class EditingContext Contains contextual state about a designer.
Public class OrderToken A generic class that identifies the sort order of hierarchical items.
Public class RequirementAttribute Defines attributes used by the RequirementValidator class.
Public class RequirementSubscription Provides a notification when changes in the editing context may have satisfied the attached requirement.
Public class RequirementValidator Determines whether the required context and services are available for the specified type.
Public class RequiresContextItemAttribute Indicates that the class relies on the specified context.
Public class RequiresServiceAttribute Indicates that the class relies on the specified service.
Public class ServiceManager Represents the behavior associated with an EditingContext.
Public class ThumbnailAttribute Associates an icon with a custom Windows Presentation Foundation (WPF) or Silverlight control in the toolbox for Visual Studio or Expression Blend. 
Public class ToolboxBrowsableAttribute Specifies whether a control is visible in a designer's toolbox browser.
Public class ToolboxCategoryAttribute Specifies the category in which a class appears in a designer's toolbox.
Public class ToolboxExampleAttribute Infrastructure. Specifies the type that implements the IToolboxExampleFactory interface.
Public class ToolboxTabNameAttribute Specifies the tab in which a class appears in a designer's toolbox.

Interfaces

  Interface Description
Public interface IToolboxExample Infrastructure. Specifies an example instance of an item in the toolbox of a visual designer.
Public interface IToolboxExampleFactory Infrastructure. Provides a list of examples in an asset toolbox that reference the same Type.

Delegates

  Delegate Description
Public delegate PublishServiceCallback A delegate that is called back when an object should publish an instance of a service.
Public delegate PublishServiceCallback<TServiceType> A generic delegate that is called back when an object should publish an instance of a service.
Public delegate SubscribeContextCallback Defines a callback method that is invoked when a context item changes.
Public delegate SubscribeContextCallback<TContextItemType> Defines a callback method that is invoked when a context item changes.
Public delegate SubscribeServiceCallback A delegate that is a callback for service subscriptions.
Public delegate SubscribeServiceCallback<TServiceType> A generic delegate that is a callback for service subscriptions.

Enumerations

  Enumeration Description
Public enumeration OrderTokenConflictResolution An enumeration used to specify the winner of ordering ties.
Public enumeration OrderTokenPrecedence An enumeration that specifies the precedence of order tokens.