THEME.currentViewID
[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 currentViewID attribute specifies or retrieves the currently displayed VIEW.
theme.currentViewID
Possible Values
This attribute is a read/write String specifying the id of the current VIEW. It has no default value.
Remarks
Specifying currentViewID automatically closes the existing currentView (pointed to by the view global attribute) and opens the specified VIEW.
Examples
<THEME currentViewID="startView">
<VIEW>
<TEXT value="this would have been the default view"/>
</VIEW>
<VIEW id="startView">
<TEXT value="go to new view"
onclick="jscript:theme.currentViewID='newView'"/>
</VIEW>
<VIEW id="newView">
<TEXT value="new view"/>
</VIEW>
</THEME>
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player version 7.0 or later |