Udostępnij za pośrednictwem


NewItemFactory Class

Represents a factory for creating new items for a collection or for a property value.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design (in Microsoft.Windows.Design.dll)

Syntax

'Declaration
Public Class NewItemFactory
'Usage
Dim instance As NewItemFactory
public class NewItemFactory
public ref class NewItemFactory
public class NewItemFactory

Remarks

Third-party control developers can derive from this class to add items to the "Add Item" drop-down box in the collection editor or sub-property editor. Third-party control developers can override the default behavior by specifying names and images to display in the collection editor and the sub-property editor when they create instances of custom controls.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.PropertyEditing.NewItemFactory

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

NewItemFactory Members

Microsoft.Windows.Design.PropertyEditing Namespace

Other Resources

WPF Designer Extensibility