The viewing and editing of documents in WinForms is achieved with the help of views. Several views can display the content of a single document. All types of views derive from the base NView class. Currently implemented are two types of views:
There is a single controller attached to every view, the purpose of which is to process the user input and convert it to some actions, which can be applied to the model or the view. The controller holds a collection of tools, which represent the atomic actions, which the controller can perform. The controller behavior is defined by the configuration of its tools.
In this way the (Diagram Documents) - (Views) - (Controller and Tools) trio, implement the concept of the Model - View - Controller architecture in the context of WinForms.
Also implemented is an overview control (Pan and Zoom control), which can be attached to a master drawing view and is used for the previewing and interactive editing of the master view viewport (see the Pan and Zoom Control topic)
Nevron Diagram for .NET also implements a complete set of end user components, which can help you create a powerful diagram designer application in several minutes. Currently implemented are:
The diagram WinForm support is located in the Nevron.Diagram.WinForm.dll assembly, for which the primary namespace is Nevron.Diagram.WinForm.
All code examples in this chapter assume that you are using the Nevron.Diagram.WinForm namespace and the Nevron.Diagram.WinForm.dll assembly is referenced by your project.
C# |
Copy Code
|
---|---|
using Nevron.Diagram.WinForm;
|
Visual Basic |
Copy Code
|
---|---|
Imports Nevron.Diagram.WinForm
|