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)

protected override void OnContentChanged(
	Object oldContent,
	Object newContent


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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft