Skip to content

AndreiMisiukevich/ExpandableView

Repository files navigation

IMPORTANT: THIS CONTROL WAS MERGED INTO XAMARIN COMMUNITY TOOLKIT

https://github.com/xamarin/XamarinCommunityToolkit

ExpandableView control for Xamarin Forms

ExpandableView

This plugin provides opportunity to create expandable views

Sample GIF

Setup

  • Available on NuGet: ExpandableView NuGet
  • Add nuget package to your Xamarin.Forms .netStandard/PCL project and to your platform-specific projects
Platform Version
Xamarin.iOS 8.0+
Xamarin.Android 15+
Windows 10 UWP 10.0.10240+

XAML:

<ContentPage xmlns:expandable="clr-namespace:Expandable;assembly=ExpandableView">
...
<expandable:ExpandableView>
    <expandable:ExpandableView.PrimaryView>
        //{YOUR MAIN VIEW HERE}
    </expandable:ExpandableView.PrimaryView>
    <expandable:ExpandableView.SecondaryViewTemplate>
        <DataTemplate>
            //{YOUR DROP-DOWN MENU TEMPLATE HERE} you can use DataTemplateSelector too
        </DataTemplate>
    </expandable:ExpandableView.SecondaryViewTemplate>
</expandable:ExpandableView>

C#:

The sample you can find here https://github.com/AndreiMisiukevich/ExpandableView/blob/master/ExpandableViewSample/App.cs

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 😃