Search
DiagramView.CreateEditControl Event
See Also
 





Raised to let you create a custom in-place editor control.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public event EventHandler<InPlaceEditEventArgs> CreateEditControl

Visual Basic  Copy Code

Public Event CreateEditControl As EventHandler(Of InPlaceEditEventArgs)

 Event Data

CreateEditControl event handlers receive an argument of type InPlaceEditEventArgs. The following InPlaceEditEventArgs members provide information relevant to the event.

Member name

Description

Item

Gets a reference to the item being edited.

EditControl

Gets or sets the control used to edit the item's text.

 Remarks

This event is raised if AllowInplaceEdit is enabled and the user double-clicks an item, or when the application invokes the BeginEdit method of DiagramView. If the event is not handled, or if EditControl is set to null, MindFusion.Diagramming uses a TextBox control to allow editing the item's text. If you prefer to use the built-in TextBox, you can still customize it by handling the EnterInplaceEditMode event.

Note that if you create a custom editor control, you must transfer the values entered into it to the respective properties of the edited diagram item. You could do that in response to the DestroyEditControl event.

 See Also