Skip to main content
ContentControlOnContentChanged Method
 

Called when the property changes.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected virtual void OnContentChanged(
	object oldContent,
	object newContent
)
protected:
virtual void OnContentChanged(
	Object^ oldContent,
	Object^ newContent
)
abstract OnContentChanged : 
        oldContent:Object *
        newContent:Object -> unit
override OnContentChanged : 
        oldContent:Object *
        newContent:Object -> unit
Protected Overridable Sub OnContentChanged (
	oldContent As Object,
	newContent As Object
)

Parameters

oldContent
Type:

The old value of the property.

newContent
Type:

The new value of the property.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top