ToggleSwitch.OnOffContentChanged(Object, Object) ToggleSwitch.OnOffContentChanged(Object, Object) ToggleSwitch.OnOffContentChanged(Object, Object) ToggleSwitch.OnOffContentChanged(Object, Object) Method

Definition

Invoked when the content for OffContent changes.

protected : virtual void OnOffContentChanged(Platform::Object oldContent, Platform::Object newContent)
virtual void OnOffContentChanged(winrt::Windows::Foundation::IInspectable oldContent, winrt::Windows::Foundation::IInspectable newContent) const;
protected virtual void OnOffContentChanged(Object oldContent, Object newContent)
Protected Overridable Sub OnOffContentChanged(oldContent As Object, newContent As Object)

Parameters

oldContent
Object Object

The string or object content of the old content.

newContent
Object Object

The string or object content of the new content that is about to display.

Remarks

Override this method in order to add steps to behavior of a custom derived class, or to change the oldContent or newContent values before passing them on to base.