Axemasta / MultiCommandCollectionView

Maui CollectionView sample for executing different commands on a single CollectionView item

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiCommandCollectionView

This is a sample Maui app using CollectionView to execute multiple commands from the same row. I have built a little OneDrive clone to demonstrate the premise.

The data template binding for extra commands needs to use a RelativeSource binding, this is different to Xamarin where you could give the parent page an x:Name and reference it via an x:Reference:

<Button Command="{Binding MoreCommand, Source={RelativeSource AncestorType={x:Type viewmodels:MainViewModel}}}"/>

Screenshots

Here is a demonstration of the navigation in the app:

Demonstration gif of the project

Landing Page

The main page of the app

Selecting A Folder

The detail page when selecting a folder

Selecting A File

Selecting a file shows a popup

Selecting More (...)

Selecting the ellipsis shows a bottom sheet

About

Maui CollectionView sample for executing different commands on a single CollectionView item

License:MIT License


Languages

Language:C# 100.0%