Skip to content

gplumb/SwipePanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwipePanel

A gesture enabled page control for WinRT.

SwipePanel allows 'pages' to be added to a container, which may be navigated by mouse or touch swipe gestures. The container shows the currently selected page as a highlighted dot in a pager control (which may be styled using CSS).

Each page of the control can either be defined in markup, or injected at runtime.

The control has 2 simple properties:

.pageIndex - The currently selected page (0-n). This property may be read or set.
.pageCount - The total number of pages in the container. This property is read-only.

The control has 1 method:

.addPage(x) - Adds a page to the container. The page (x) must be a <div> element

See SwipePanel.sln for a WinJS demo that shows the control in action.

About

A gesture enabled page control for WinRT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published