Κοινή χρήση μέσω


SUBVIEW Element

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The SUBVIEW element provides a way to manipulate a portion of a skin, for example, to provide a control panel that can be hidden when it is not being used. SUBVIEW elements are always children of parent VIEW elements, and can contain other skin element except for VIEW, THEME, and other SUBVIEW elements.

The SUBVIEW element supports the following attributes, which are defined under the VIEW element.

Attribute Description
backgroundColor Specifies or retrieves the background color of the SUBVIEW control. The default value is "none".
backgroundImage Specifies or retrieves the background image of the SUBVIEW control.
backgroundImageHueShift Specifies or retrieves the amount by which the hue of the background image is shifted.
backgroundImageSaturation Specifies or retrieves the saturation value of the background image.
backgroundTiled Specifies or retrieves a value indicating whether the background image of the SUBVIEW control is tiled.
resizeBackgroundImage Specifies or retrieves a value indicating whether the background image can be resized.
transparencyColor Specifies or retrieves the transparency color of the background image.

 

The SUBVIEW element supports the ambient attributes, except where noted. For more information, see Ambient Attributes.

The SUBVIEW element can implement the following ambient event handlers: onendmove and onresize.

Skin Programming Reference

VIEW Element