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
- item
Type: Microsoft.Windows.Design.Model.ModelItem
The item to initialize. This should not be nulla null reference (Nothing in Visual Basic).
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace