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


Ambient Attributes

[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 ambient attributes and methods are supported by all appropriate skin elements, except where noted.

The following attributes are ambient.

Attribute Description
accName Specifies or retrieves a name for any element.
accDescription Specifies or retrieves a description for any element.
accKeyboardShortcut Specifies or retrieves a keyboard shortcut description for any element.
alphaBlend Specifies or retrieves a value for alpha blending any VIEW, SUBVIEW, or UI widget.
bottom Specifies or retrieves the bottom coordinate of the control.
clippingColor Specifies or retrieves the color to clip out from the clippingImage bitmap.
clippingImage Specifies or retrieves the region to clip the control to.
elementType Retrieves the type of the element (for instance, BUTTON).
enabled Specifies or retrieves a value indicating whether the control is enabled or disabled.
height Specifies or retrieves the height of the control.
horizontalAlignment Specifies or retrieves a value that indicates the horizontal placement of the control when the VIEW or parent SUBVIEW is resized.
id Specifies or retrieves the identifier of a control. Can only be set at design time.
left Specifies or retrieves the left coordinate of the control.
nineGridMargins Specifies margin widths for non-uniform scaling of the skin element.
passThrough Specifies or retrieves a value indicating whether the control will pass all mouse events through to the control under it.
resizeImages Specifies or retrieves a value indicating whether images contained in the control resize automatically when the control size changes.
right Specifies or retrieves the right coordinate of the control.
tabStop Specifies or retrieves a value indicating whether the control will be in the tabbing order.
top Specifies or retrieves the top coordinate of the control.
verticalAlignment Specifies or retrieves a value that indicates the vertical placement of the control when the VIEW or parent SUBVIEW is resized.
visible Specifies or retrieves the visibility of the control.
width Specifies or retrieves the width of the control.
zIndex Specifies or retrieves the order in which the control is rendered.

 

The following methods are ambient.

Method Description
alphaBlendTo Adjusts the alphaBlend property over a period of time.
moveSizeTo Moves the control and specifies a new size for the control in the new location. The control moves and resizes in an animated fashion over the specified time period.
moveTo Moves the control to a new location at a linear speed.
slideTo Moves the control to a new location. The control moves in a non-linear fashion over the specified time period.

 

Skin Programming Reference