Skip to main content
All docs
V26.1
  • ViewModelLocator Members

    Locates and creates ViewModel instances for views by naming conventions and configured assemblies.

    Constructors

    Name Description
    ViewModelLocator(IEnumerable<Assembly>) Initializes a new instance of the ViewModelLocator class and sets the assemblies used to resolve ViewModel types.
    ViewModelLocator(Assembly[]) Initializes a new instance of the ViewModelLocator class and sets the assemblies used to resolve ViewModel types.
    ViewModelLocator(Application) Initializes a new instance of the ViewModelLocator class for the specified application.

    Properties

    Name Description
    Default static Gets or sets the global default IViewModelLocator instance.

    Methods

    Name Description
    Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
    Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
    GetHashCode() Serves as the default hash function. Inherited from Object.
    GetType() Gets the Type of the current instance. Inherited from Object.
    GetViewModelTypeName(Type) Gets the ViewModel type name associated with the specified view type.
    MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
    ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
    ResolveViewModelType(String) Resolves a ViewModel type by the specified name.
    ToString() Returns a string that represents the current object. Inherited from Object.
    See Also