[Category("Diagram")] public event EventHandler<DiagramEventArgs> NodeCreated
Event Data
The event handler receives an argument of type DiagramEventArgs containing data related to this event. The following DiagramEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Element | Gets or sets the specific FrameworkElement that was acted upon and that is the subject of the event. |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
Part | Gets or sets the Part that was acted upon and that is the subject of the event. |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
Remarks
The Part will be the newly drawn Node. If you are looking for an event that occurs upon a drop when dragging from a Palette, use the ExternalObjectsDropped event. If you are looking for an event that occurs when the user control-drag-drops the selection to make a copy of the selection, use the SelectionCopied event.
See Also