This is an input mode handling drag and drop related events
on a CanvasControl.
Namespace: yWorks.Canvas.InputAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public class DropInputMode : AbstractConcurrentInputMode |
| Visual Basic |
|---|
Public Class DropInputMode _ Inherits AbstractConcurrentInputMode |
Remarks
An instance of DropInputMode is initialized for an
expected data format in the constructor.
There are four events raised by an instance of this class.
- DragEntered is raised, if a drag operation enters the CanvasControl.
- DragOver is raised, if a drag operation moves over the CanvasControl after having entered it.
- DragDropped is raised, if a drag is dropped onto the CanvasControl.
- DragLeft is raised, if a drag is operation leaves the CanvasControl.
Clients can query the current MousePosition which is updated while a drag is in progress. Clients get the data from the drag operation by calling DropData from an event handler registered for any of these events.
This input mode supports concurrency. It can be added to a MultiplexingInputMode using AddConcurrent(IConcurrentInputMode) or AddConcurrent(IConcurrentInputMode, Int32).
Inheritance Hierarchy
System..::..Object
yWorks.Canvas.Input..::..AbstractInputMode
yWorks.Canvas.Input..::..AbstractConcurrentInputMode
yWorks.Canvas.Input..::..DropInputMode
yWorks.yFiles.UI.Input..::..NodeDropInputMode
yWorks.yFiles.UI.Input..::..StripeDropInputMode
yWorks.Canvas.Input..::..AbstractInputMode
yWorks.Canvas.Input..::..AbstractConcurrentInputMode
yWorks.Canvas.Input..::..DropInputMode
yWorks.yFiles.UI.Input..::..NodeDropInputMode
yWorks.yFiles.UI.Input..::..StripeDropInputMode