Class ViewContractAttribute
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Allows an additional string to make view resolution more specific than just a type. When applied to your IViewFor<T> -derived View, you can select between different Views for a single ViewModel instance.
- Inheritance
-
View
Contract Attribute
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the View
Constructors
ViewContractAttribute(string)
Allows an additional string to make view resolution more specific than just a type. When applied to your IViewFor<T> -derived View, you can select between different Views for a single ViewModel instance.
Parameters
contract
stringThe value of the contract for view resolution.
Remarks
Initializes a new instance of the View
Properties
Contract
Gets the contract to use when resolving the view in the Splat Dependency Injection engine.