GoXam for WPF v3
DiagramPanel Class
Northwoods.GoXam Namespace : DiagramPanel Class
The DiagramPanel is the central class of a Diagram, holding all of the Layers of Parts, responsible for translation (scrolling) and scaling (zooming) and alignment, keeping track of the diagram's bounds, and having various hit-testing methods used to search the diagram for particular elements.
Object Model
DiagramPanel ClassNodeLayer ClassDiagram Class
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public class DiagramPanel : System.Windows.Controls.Panel 

A DiagramPanel must be in the ControlTemplate of a Diagram. Both the Diagram and the DiagramPanel are useless without each other.

Because DiagramPanel is a Panel, you can define the layers of this panel in XAML by placing them nested within the definition of the <DiagramPanel> element. If you do not define any layers explicitly, the InitializeLayers method will create the standard nine layers: "Background" nodes and links, default ("") nodes and links, "Foreground" nodes and links, "Tool" nodes and links, and "Adornment" nodes.

This class is also responsible for mouse input. It redirects mouse events to the Diagram's CurrentTool.

You may not apply any transforms to a Layer; that is reserved for GoXam's use. This panel's Background is also reserved for GoXam's use.

Inheritance Hierarchy


See Also


DiagramPanel Members
Northwoods.GoXam Namespace