Creates and binds a view object of type T to the specified
model object. The specified modelType is used
to determine the type of the specified model object when the view
type is looked up.
Namespace: Spotfire.Dxp.Framework.ApplicationModelAssembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax
Parameters
- model
- Type: System Object
The model object to be bound to the returned View. It will be supplied as the argument to the view's constructor. The model object must be assignable to the speficied modelType.
- modelType
- Type: System Type
The model object type used as key when looking up the view type.
Type Parameters
- T
- The view base or interface type to search for. The type to cast the returned view to.
Return Value
Type: TA view bound to model, or null if none is found or if the created view cannot be casted to T (it will be created anyway, if possible). The returned view's type will be assignable to T
Exceptions
Exception | Condition |
---|---|
System InvalidOperationException | If the required constructor cannot be found. |
System Exception | If the view's constructor throws an Exception that exception will be re-thrown. If the view cannot be constructed for other reasons. |
Remarks
Version Information
See Also