Northwoods.GoSilverlight 1.3.5 Assembly
TextEditingTool Class
Members  See Also  Send Feedback
Northwoods.GoXam.Tool Namespace : TextEditingTool Class

The TextEditingTool is used to let the user interactively edit text in place.

Syntax

Visual Basic (Declaration) 
Public Class TextEditingTool 
   Inherits DiagramTool
   Implements IDiagramTool 
C# 
public class TextEditingTool : DiagramTool, IDiagramTool  

Remarks

Typically this is used by setting the go:Part.TextEditable attached property to true on a particular TextBlock in a node. When the node is selected and the user clicks on the TextBlock or invokes the Northwoods.GoXam.CommandHandler.Edit command, this tool is started and it uses an ITextEditor to perform in-place text editing. This text editor control is held in an Northwoods.GoXam.Adornment so that it can be positioned in front of the TextBlock. (For more details see the description for DoActivate.)

The TextBlock is accessible as the TextBlock property. The text editor is accessible as the TextEditor property; the adornment holding the editor is accessible as the TextEditingTool.EditorAdornment property. From the text editor control one can access the TextBlock being edited via the TextEditingTool to get to this tool, from which one can use the TextBlock property.

You can disable mouse clicking from starting this text editing tool by setting MouseEnabled to false. You can disable the F2 key from starting this text editing tool by making sure Northwoods.GoXam.Part.CanEdit returns false, by either setting Northwoods.GoXam.Diagram.AllowEdit to false or by setting Northwoods.GoXam.Part.Editable to false.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            Northwoods.GoXam.Tool.DiagramTool
               Northwoods.GoXam.Tool.TextEditingTool

Requirements

See Also

© 2012 All Rights Reserved.