Coder Social home page Coder Social logo

swipelistview's Introduction

SwipeListView for Runtime & Silverlight

Introduction

This repository contains a list with items swiping feature, like the one in new Outlook Mail app for Windows 10.

Demo

In Runtime controls are based on ListView & ListViewItem, in Silverlight on ListBox & ListBoxItem. Items have two side options fully customizables via ItemX properties of their parent SwipeListView.

Available properties are:

  • ItemLeft/RightBackground: Changes color of side items backgroud.
  • ItemLeft/RightTemplate: DataTemplates of side items, content is the item, so all is in binding.
  • ItemLeft/RightBehavior: Changes the behavior of side items.

Available behaviors are:

  • Collapse: triggered at 2/5 of the width of the item. Once triggered side menu is collapsed and state is restored.
  • Expand: triggered at 3/5 of the width of the item. Once triggered side menu is expanded, state is not restored.
  • Disabled: side item is disabled.

You can handle swipe with ItemSwipe event. It is triggered at start of animation for Collapse behavior and at the end for Expand. Event arguments are SwipedItem and Direction.

The code is released under the MIT/X11, so feel free to modify and share your changes with the world.

How to

A demo project (Runtime) is included in solution.

Install

You can install the library via NuGet.

Install-Package SwipeListView

swipelistview's People

Contributors

bartlannoeye avatar bryant1410 avatar frayxrulez avatar mikegoatly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.