createViewModelInstance

Create a new view model instance based on the given source. The source is a combination of a view model source and an instance source, which multiply to capture all the possible ways to create an instance (+1 for referencing).

Return

The handle of the created view model instance.

Parameters

fileHandle

The handle of the file that owns the view model instance.

source

The source of the view model instance to create, which internally also has a ViewModelSource.

Throws

If the CommandQueue has been released.