Udostępnij za pośrednictwem


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<ContextItemType> 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 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.

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<ServiceType> 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<ContextItemType> 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<ServiceType> 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.