Displays a collection, such as a set of photos, one item at a time.
Creates a new FlipView.
The DOM element that hosts the control.
An object that contains one or more property/value pairs to apply to the new control. Each property corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the pageselected event, add a property named "onpageselected" and set its value to the event handler.
Gets or sets the index of the currently displayed page.
Gets the HTML element that hosts this FlipView.
Gets or sets the data source that provides the FlipView with items to display. The FlipView displays one item at a time, on its own page.
Gets or sets the spacing between each item, in pixels.
Gets or sets a Template or function that defines the HTML for each item's page.
Gets or sets the orientation of the FlipView, horizontal or vertical.
Registers an event handler for the specified event.
The name of the event to handle. For a list of events, see the FlipView object page.
The event handler function to associate with the event.
Set to true to register the event handler for the capturing phase; set to false to register the event handler for the bubbling phase.
Returns the number of items in the FlipView control's itemDataSource.
A Promise that contains the number of items in the list or WinJS.UI.CountResult.unknown if the count is unavailable.
Raises an event of the specified type and with additional properties.
The type (name) of the event.
The set of additional properties to be attached to the event object when the event is raised.
boolean
true if preventDefault was called on the event, otherwise false.
Releases resources held by this FlipView. Call this method when the FlipView is no longer needed. After calling this method, the FlipView becomes unusable.
Forces the FlipView to update its layout. Use this function when making the FlipView visible again after its style.display property had been set to "none".
Navigates to the next page.
boolean
true if the FlipView begins navigating to the next page; false if the FlipView is already at the last item or is in the middle of another navigation animation.
Occurs when the datasource count changes.
An object that contains information about the event. The detail property of this object contains the following sub-properties: source.
Raised when the FlipView flips to a page and its renderer function completes.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.source.
Raised when the FlipView flips to a page.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.source.
Occurs when an item becomes invisible or visible.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.source, detail.visible.
Navigates to the previous item.
boolean
true if the FlipView begins navigating to the previous page; nfalse if the FlipView is already at the first page or is in the middle of another navigation animation.
Unregisters an event handler for the specified event.
The name of the event.
The event handler function to remove.
Set to true to unregister the event handler for the capturing phase; otherwise, set to false to unregister the event handler for the bubbling phase.
Sets custom animations for the FlipView to use when navigating between pages.
An object that contains up to three fields, one for each navigation action: next, previous, and jump. Each of those fields must be a function with this signature: function (outgoingPage, incomingPage) Each function must return a WinJS.Promise that completes once the animations are finished. If a field is null or undefined, the FlipView reverts to its default animation for that action.