Version

InitControlAppearance Method

Resolves the control specific appearances for this button. Default implementation merges in its Appearance. This method should only merge in the appearance properties exposed by the controls. It should not merge in any defaults. The InitAppearance method calls this method in between the calls that resolve app-style appearance settings. In other words this method should itself not resolve any app-style appearance settings. Also note that the InitAppearance method will check UseControlInfo setting of the app-style and if it's false it will not call this method. Therefore the overridden implementations do no need to check for UseControlInfo app-style setting.
Syntax
'Declaration
 
Protected Overridable Sub InitControlAppearance( _
   ByRef appData As AppearanceData, _
   ByRef flags As AppearancePropFlags _
) 
protected virtual void InitControlAppearance( 
   ref AppearanceData appData,
   ref AppearancePropFlags flags
)

Parameters

appData
The AppearanceData object into which the appearance object should be merged.
flags
The AppearancePropFlags specifying which properties should be merged.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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