Creates and binds a view object of type T to the specified
model object.
Namespace: Spotfire.Dxp.Framework.ApplicationModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax
C#
public T CreateView<T>( Object model ) where T : class
Parameters
- model
- Type: SystemObject
The model object to be bound to the returned view. Its type will be used when searching for the view. It will be supplied as the argument to the view's constructor.
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 object 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).
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | If the required constructor cannot be found. |
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