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

    A markup extension that allows you to resolve an object or service from the configured dependency injection container in XAML. The extension uses the global IocServiceProvider.Default service provider.

    Constructors

    Name Description
    IocExtension() Initializes a new instance of the IocExtension class.
    IocExtension(Type) Initializes a new instance of the IocExtension class with specified settings.

    Properties

    Name Description
    Type Gets or sets the type of the object or service that the IocExtension resolves from the configured dependency injection container.

    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.
    MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
    ProvideValue(IServiceProvider) Resolves and returns the object or service of the type specified by the Type property from the Default service.
    ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
    ToString() Returns a string that represents the current object. Inherited from Object.
    See Also