Dela via


InstanceFactory Class

A feature provider that enables you to provide the implementation of the CreateInstance method for your object.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public MustInherit Class InstanceFactory _
    Inherits FeatureProvider
'Usage
Dim instance As InstanceFactory
public abstract class InstanceFactory : FeatureProvider
public ref class InstanceFactory abstract : public FeatureProvider
public abstract class InstanceFactory extends FeatureProvider

Remarks

The default implementation simply calls Activator.CreateInstance. The instance returned should have the same "shape" as the type requested, but does not have to derive from that type. The designer infrastructure will make sure that the type name reported for the object matches the requested type.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Features.FeatureProvider
    Microsoft.Windows.Design.Model.InstanceFactory

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

InstanceFactory Members

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture