AmbientAttributes.visible

[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 visible attribute specifies or retrieves the visibility for the control.

        elementID.visible

Possible Values

This attribute is a read/write Boolean.

Value Description
true Default. The control is visible.
false The control is not visible.

Remarks

This attribute is useful for hiding controls, for example when swapping a pause button for a play button.

If the value is false, the control is not visible and click events are passed to the control behind it. If the value is true, the control is visible and receives the click event itself.

The default value for the AUTOMENU element is false.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

Ambient Attributes