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

This Shape can be used only in the DataTemplate for an Adornment used by Northwoods.GoXam.Tool.DiagramTools to allow the adorned part to be manipulated.

Syntax

Visual Basic (Declaration) 
Public Class ToolHandle 
   Inherits System.Windows.Shapes.Path
C# 
public class ToolHandle : System.Windows.Shapes.Path 

Remarks

You should set its Stroke, StrokeThickness, Fill, et al. as you would for any Shape, as well as its Width and Height.

A ToolHandle is rectangular by default, but you can set or bind its NodeFigure attached property to get different figures. You can specify a limited number of figure shapes for these handles: NodeFigure.Rectangle (the default figure), NodeFigure.Ellipse, NodeFigure.Diamond, NodeFigure.TriangleRight, NodeFigure.TriangleDown, NodeFigure.TriangleLeft, NodeFigure.TriangleUp, NodeFigure.PlusLine, NodeFigure.XLine, NodeFigure.AsteriskLine,

A simple example definition:

              <DataTemplate>
                <go:SpotPanel>
                  <go:ToolHandle go:SpotPanel.Spot="Center" go:NodePanel.Figure="Ellipse"
                          Width="6" Height="6" Fill="Yellow" Stroke="Black" StrokeThickness="1" />
                </go:SpotPanel>
              </DataTemplate>
            

You can have many tool handles in a single Adornment.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Shapes.Shape
               System.Windows.Shapes.Path
                  Northwoods.GoXam.ToolHandle

Requirements

See Also

© 2010 All Rights Reserved.