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





Creates and adds a new dependency to the project. A respective object of type DependencyType is created and added to the underlying model as well.

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

 Syntax

C#  Copy Code

public abstract IDependencyViewModel CreateDependency (
    IActivityViewModel from,
    IActivityViewModel to
)

Visual Basic  Copy Code

Public MustOverride Function CreateDependency ( _
    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.

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Wpf Namespace