Share via


ContextItem.OnItemChanged Method

Called on a context item before it is stored in the context item manager.

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

Syntax

'Declaration
Protected Overridable Sub OnItemChanged ( _
    context As EditingContext, _
    previousItem As ContextItem _
)
protected virtual void OnItemChanged(
    EditingContext context,
    ContextItem previousItem
)
protected:
virtual void OnItemChanged(
    EditingContext^ context, 
    ContextItem^ previousItem
)
abstract OnItemChanged : 
        context:EditingContext * 
        previousItem:ContextItem -> unit 
override OnItemChanged : 
        context:EditingContext * 
        previousItem:ContextItem -> unit 
protected function OnItemChanged(
    context : EditingContext, 
    previousItem : ContextItem
)

Parameters

Remarks

The previous item in the context item manager is passed in as a parameter. Because items must have default constructors, a default item is fabricated if an item is first passed in to the context.

.NET Framework Security

See Also

Reference

ContextItem Class

Microsoft.Windows.Design Namespace

ContextItemManager

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility