Creates a new ViewModel for the specified activity and dependency models. The ViewModel is automatically associated with the chart through its DataContext property.
Namespace: MindFusion.DataViews.Wpf
Assembly: MindFusion.DataViews.Wpf
Syntax
C#
Copy Code
|
---|
public IProjectViewModel CreateViewModel ( IEnumerable activites, IEnumerable dependencies, IEnumerable resources, IEnumerable allocations, Type activityType, Type dependencyType, Type resourceType, Type resourceAllocationType ) |
Visual Basic
Copy Code
|
---|
Public Function CreateViewModel( _ activites As IEnumerable, _ dependencies As IEnumerable, _ resources As IEnumerable, _ allocations As IEnumerable, _ activityType As Type, _ dependencyType As Type, _ resourceType As Type, _ resourceAllocationType As Type _ ) As IProjectViewModel |
Parameters
Return Value
A built-in implementation of the IProjectViewModel interface wrapping the specified sources.
See Also