Giter Site home page Giter Site logo

sergepilipchuk / maui-collectionview-long-tap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devexpress-examples/maui-collectionview-long-tap

0.0 0.0 0.0 2.54 MB

This example shows how to use the DXCollectionView.LongPress event to enable multiple item selection and implement the contextual action bar.

License: Other

C# 100.00%

maui-collectionview-long-tap's Introduction

DevExpress CollectionView for .NET MAUI - Enable Multiple Selection and Implement the Contextual Action Bar

This example shows how to use the DXCollectionView.LongPress event to enable multiple item selection.

Requirements

Register the DevExpress NuGet Gallery in Visual Studio to restore NuGet packages used in this solution. See the following topic for more information: Get Started with DevExpress Mobile UI for .NET MAUI.

You can also refer to the following YouTube video for more information on how to get started with the DevExpress .NET MAUI Controls: Setting up a .NET MAUI Project.

Implementation Details

  • Handle the DXCollectionView.LongPress event and set the DXCollectionView.SelectionMode property to Multiple.
  • Use the DXCollectionView.SelectedItemTemplate property to specify a template for selected items.
  • You can create a ContentView descendant to implement common visual elements for a regular and selected templates. This example uses the SelectableItem (ContentView descendant) class that contains the IsSelected property. The appearance of this class is defined in the itemBaseTemplate.
  • When a CollectionView item is selected, the application title displays custom actions. You can use the Shell.TitleView property to define these actions.

Files to Review

Documentation

More Examples

maui-collectionview-long-tap's People

Contributors

friedcucumber avatar sergepilipchuk 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.