Skip to content

Context Related Classes

Gary edited this page Aug 27, 2014 · 1 revision

Table of Contents

Some classes use context interfaces or classes for their operation, so are good examples of context usage. The classes discussed here fall in a few general categories. These classes are nearly all MEF components.

Lister Classes

These classes list various items in a tree type control.

Class Context Interfaces or Classes Used Description
LayerLister ILayeringContext Editor that presents an ILayeringContext using a TreeControl.
ProjectLister IHierarchicalInsertionContext Editor providing a hierarchical tree control, listing the contents of a loaded document.
PrototypeLister IPrototypingContext Editor that presents an IPrototypingContext using a TreeControl.
TemplateLister ITemplatingContext Editor that presents an ITemplatingContext using a TreeControl.

Command Handlers

These classes provide commands for applications.

Class Context Interfaces or Classes Used Description
GroupingCommands ViewingContext Component that defines circuit-specific commands for Group and Ungroup commands. Grouping takes modules and the connections between them and turns them into a single element that is equivalent.
LayeringCommands LayeringContext Component to add an "Add Layer" command to an application.
SourceControlCommands ISourceControlContext Component that implements source control commands.
StandardLayoutCommands ILayoutContext Component that provides standard layout commands, like align left, or make widths equal. The component tries to work with the active context, and requires both the ISelectionContext and ILayoutContext interfaces to be implemented on the context. Further, it examines the selected items to see if the layout context can set their x, y, width, and height. Any commands that can be done on the selection are enabled in the GUI. All commands are also available programmatically through public methods.
StandardLockCommands ILockingContext Implements standard Lock and Unlock commands on contexts implementing the ILockingContext interface.
StandardShowCommands IVisibilityContext Class that implements the standard Show commands: Show Selected, Hide Selected, Show Last Hidden, Show All, Isolate.
StandardViewCommands IViewingContext Class that implements the standard viewing commands on contexts implementing the IViewingContext interface.
TemplatingCommands TemplatingContext Component to add an "Add Template Folder" command to an application.

Property Editing Classes

These classes provide property editing functionality for applications.

Class Context Interfaces or Classes Used Description
GridControl PropertyEditingContext Wrapper control for the spreadsheet-style GridView control, combining it with a toolbar. Use this as a replacement for the .NET System.Windows.Forms.DataGridView.
GridPropertyEditor SelectionPropertyEditingContext Component to edit DOM object values and attributes using GridControl.
PropertyEditingCommands SelectionPropertyEditingContext Component to provide property editing commands that can be used inside PropertyGrid-like controls. It defines context-menu commands to reset the current property and all properties.
PropertyEditingControl PropertyEditorControlContext, TypeDescriptorContext Universal property editing control that can be embedded in complex property editing controls. It uses TypeConverters and UITypeEditors to provide a GUI for every kind of .NET property.
PropertyEditor SelectionPropertyEditingContext Component to edit DOM object values and attributes using PropertyGrid.
PropertyGrid PropertyEditingContext Wrapper control for a two-column PropertyGridView combined with a toolbar. Use this as a replacement for the .NET System.Windows.Forms.PropertyGrid.
PropertyGridView TypeDescriptorContext Control for displaying properties in a two-column grid, with property names on the left and property values on the right.
PropertyView IPropertyEditingContext Base class for complex property editing controls, providing formats, fonts, data binding, persistent settings, and category/property information.
Various value editors PropertyEditorControlContext A value editor calls the IPropertyEditor interface's GetEditingControl() method, which takes a PropertyEditorControlContext as its parameter. GetEditingControl() uses the context to construct the associated control. For more information, see Value Editors.

Miscellaneous

A few other classes that use contexts are mentioned here.

Class Context Interfaces or Classes Used Description
CircuitControlRegistry ViewingContext, CircuitEditingContext Component to provide a convenient service to register/unregister circuit controls created for circuit groups, to synchronize UI updates for circuit controls due to group renaming, to insert/delete circuit elements, and to close documents/controls.
DomNodeQueryable IQueryableContext, IQueryableReplaceContext, IQueryableResultContext DOM adapter enabling DomNodes to be searched, to supply the search results, and to have those results replaced with other data.

Topics in this section

Clone this wiki locally