Version

OnResetDefaultableProperties Method

Gives subclasses an opportunity to restore container-specific default values to their image properties.
Syntax
'Declaration
 
Protected Overridable Sub OnResetDefaultableProperties() 
protected virtual void OnResetDefaultableProperties()
Remarks

Called by the Reset method after it clears the SimpleImage object's viewstate. If your derived type is like most, you will have stored simple property values in the ViewState property. If some of these properties already had default values applied from an external context such as their container or parent element, then your override of this event should reassign those default values.

Inheritors must call the base class implementation of this method before restoring their own default values.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also