Windows Media Player SDK banner art
PreviousNext

VIEW Element

The VIEW element contains the user interface details of a skin, which use the following attributes, methods, and event handlers. Multiple VIEW elements can be defined within a THEME element to provide different interfaces for different situations. Note that each view has its own variable scope, which means it cannot share attribute values with other views.

The VIEW element supports the following attributes. Attributes marked with an asterisk (*) are also supported by the SUBVIEW element.

Attribute Description
backgroundColor * Specifies or retrieves the background color of the VIEW or SUBVIEW.
backgroundImage * Specifies or retrieves the background image of the VIEW or SUBVIEW.
backgroundTiled * Specifies or retrieves a value indicating whether the background image of the VIEW or SUBVIEW is tiled.
category Specifies or retrieves the category for which the user interface will appear.
focusObjectID Specifies or retrieves a value indicating which element has keyboard focus.
maxHeight Specifies or retrieves the maximum height of the VIEW when resizing.
maxWidth Specifies or retrieves the maximum width of the VIEW when resizing.
minHeight Specifies or retrieves the minimum height of the VIEW when resizing.
minWidth Specifies or retrieves the minimum width of the VIEW when resizing.
resizable Specifies or retrieves a value indicating whether the VIEW can be resized.
scriptFile Specifies the file names of accompanying JScript files.
timerInterval Specifies or retrieves the interval, in milliseconds, at which the timer fires events to the ontimer event handler.
title Specifies or retrieves the title of the VIEW.
titleBar Specifies or retrieves a value indicating whether the window title bar is shown.
transparencyColor * Specifies or retrieves the transparency color of the background image.

The VIEW element supports the following methods.

Method Description
close Closes the VIEW.
maximize Maximizes the VIEW.
minimize Minimizes the VIEW.
restore Restores the VIEW.
returnToMediaCenter Returns the user to the Media Center.
size Resizes the VIEW on a specified edge.

The following event handlers can be implemented in the VIEW element.

Event handler Description
onclose Handles an event that occurs when the VIEW is about to be closed.
onerror Handles an error event if Settings.enableErrorDialogs is set to false.
onload Handles an event that occurs when the VIEW is first displayed.
ontimer Handles timer events.

The ambient attributes and ambient events are also supported by this element, except where noted.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.