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)
Syntax
Protected Overrides Sub OnContentChanged ( _
oldContent As Object, _
newContent As Object _
)
protected override void OnContentChanged(
Object oldContent,
Object newContent
)
Parameters
- oldContent
Type: System..::.Object
The content to be replaced.
- newContent
Type: System..::.Object
The new content to display.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone