Northwoods.GoSilverlight 1.2.2 Assembly
Layer Class
Members  See Also  Send Feedback
Northwoods.GoXam Namespace : Layer Class

A Layer is a collection of Nodes or Links that are to be displayed in front of or behind the parts in other layers.

Syntax

Visual Basic (Declaration) 
Public MustInherit Class Layer 
   Inherits System.Windows.Controls.Panel
C# 
public abstract class Layer : System.Windows.Controls.Panel 

Remarks

Each layer can only be a child of a DiagramPanel -- they cannot be nested. There are two classes inheriting from this abstract Layer class: NodeLayer and LinkLayer, which hold only nodes or only links, respectively.

Each layer has an Layer.Id property that is used to identify the layer in the DiagramPanel amongst multiple layers of the same type.

There are many properties, named "Allow...", that control what operations the user may perform on the parts held by this layer. These correspond to the same named properties on Diagram that govern the behavior for all parts in all layers. Furthermore for some of these properties there are corresponding properties on Part, named "...able", that govern the behavior for that individual part. For example, the Layer.AllowCopy property corresponds to AllowCopy and to the property Part.Copyable. The Part.CanCopy predicate is false if any of these properties is false.

You may not apply any transforms to a Layer; that is reserved to GoXam for future use.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Panel
               Northwoods.GoXam.Layer
                  Northwoods.GoXam.LinkLayer
                  Northwoods.GoXam.NodeLayer

Requirements

See Also

© 2010 All Rights Reserved.