MindFusion.Wpf Pack Programmer's Guide
IProjectViewModel.DoCreateDependency Method
See Also
 





Creates and adds a new dependency to the project.

Namespace: MindFusion.DataViews.Wpf
Assembly: MindFusion.DataViews.Wpf

 Syntax

C#  Copy Code

public abstract IDependencyViewModel DoCreateDependency (
    IActivityViewModel from,
    IActivityViewModel to
)

Visual Basic  Copy Code

Public MustOverride Function DoCreateDependency ( _
    from As IActivityViewModel, _
    to As IActivityViewModel _
) As IDependencyViewModel

 Parameters

from
The source activity of the newly created dependency.
to
The target activity of the newly created dependency.

 Return Value

An IDependencyViewModel representing the newly created dependency, or null (Nothing in Visual Basic), if the operation could not be completed.

 Remarks

This method is not subject to undo/redo and should not be invoked directly. Instead, call the CreateDependency method, which will register the operation for subsequent undo.

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Wpf Namespace