OnContentChanged Method
Collapse the table of content
Expand the table of content

ToggleButton.OnContentChanged Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Called when the ContentControl property changes.

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

'Declaration
Protected Overrides Sub OnContentChanged ( _
	oldContent As Object, _
	newContent As Object _
)

Parameters

oldContent
Type: System.Object
The content to be replaced.
newContent
Type: System.Object
The new content to display.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft