Share via


DefaultInitializer.InitializeDefaults Method (ModelItem, EditingContext)

Initializes default values for the specified item using the provided editing context.

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

Syntax

'Declaration
Public Overridable Sub InitializeDefaults ( _
    item As ModelItem, _
    context As EditingContext _
)
public virtual void InitializeDefaults(
    ModelItem item,
    EditingContext context
)
public:
virtual void InitializeDefaults(
    ModelItem^ item, 
    EditingContext^ context
)
abstract InitializeDefaults : 
        item:ModelItem * 
        context:EditingContext -> unit 
override InitializeDefaults : 
        item:ModelItem * 
        context:EditingContext -> unit 
public function InitializeDefaults(
    item : ModelItem, 
    context : EditingContext
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

item is nulla null reference (Nothing in Visual Basic).

Remarks

Use context to add new references from the initializer or access state and services running in the designer.

.NET Framework Security

See Also

Reference

DefaultInitializer Class

InitializeDefaults Overload

Microsoft.Windows.Design.Model Namespace

ModelItem

FeatureProvider

ToolboxBrowsableAttribute

Other Resources

WPF Designer Extensibility