Northwoods.GoSilverlight 1.2.2 Assembly
DiagramPanel Class
Members  See Also  Send Feedback
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.

Syntax

Visual Basic (Declaration) 
Public Class DiagramPanel 
   Inherits System.Windows.Controls.Panel
   Implements IScrollInfo 
C# 
public class DiagramPanel : System.Windows.Controls.Panel, IScrollInfo  

Remarks

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

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Panel
               Northwoods.GoXam.DiagramPanel

Requirements

See Also

© 2010 All Rights Reserved.