Skip to content
ContextViewCell for Xamarin.Forms
Branch: master
Clone or download
Latest commit 46f8969 Apr 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ContextMenu.Droid fixes Apr 14, 2019
ContextMenu.iOS updated XF Apr 7, 2019
ContextMenu updated XF Apr 7, 2019
ContextMenuSample updated sample Apr 14, 2019
files updated sample Apr 14, 2019
.gitignore initial May 30, 2018
ContextMenu.nuspec
LICENSE
README.md

README.md

SideActionBarCell | MoveToActionCell controls for Xamarin Forms

Setup

  • Available on NuGet: ContextViewCell NuGet
  • Add nuget package to your Xamarin.Forms .netStandard/PCL project and to your platform-specific projects (iOS and Android)
  • Call ContextMenuScrollViewRenderer.Initialize() in AppDelagate for iOS for preserving linking.
Platform Version
Xamarin.iOS 8.0+
Xamarin.Android 15+

SideActionBarCell

This plugin provides opportunity to create custom context menu for every cell

Sample GIF

MoveToActionCell

Also you can create move-to-action cells (for example Move to delete)

Sample GIF

Samples

The sample you can find here https://github.com/AndreiMisiukevich/ContextMenu/blob/master/ContextMenuSample/ContextMenuSample/SamplePage.xaml

XAML:

    <ListView>
        <ListView.ItemTemplate>
            <DataTemplate>
                <context:SideActionBarCell>
                    <context:SideActionBarCell.Content>
                        //{YOUR MAIN VIEW HERE}
                        </ContentView>
                    </context:SideActionBarCell.Content>
                    <context:SideActionBarCell.ContextTemplate>
                        <DataTemplate>
                            //{YOUR CONTEXT TEMPLATE HERE} you can use DataTemplateSelector too
                        </DataTemplate>
                    </context:SideActionBarCell.ContextTemplate>
                </context:SideActionBarCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

Make sure your main view width equals list's width You can adjust it by binding

...
<ListView x:Name="SampleList"
        <ListView.ItemTemplate>
            <DataTemplate>
                <context:SideActionBarCell>
                    <context:SideActionBarCell.Content>
                        <ContentView WidthRequest="{Binding Source={x:Reference SampleList}, Path=Width}">
                            ...

C#:

The sample you can find here https://github.com/AndreiMisiukevich/ContextMenu/blob/master/ContextMenuSample/ContextMenuSample

Check source code for more info, or 🇧🇾 just ask me =) 🇧🇾

License

The MIT License (MIT) see License file

Contribution

Feel free to create issues and PRs 😃

You can’t perform that action at this time.