Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Tommigun1980/Xamarin.Forms.SlideView

A sliding view component for Xamarin.Forms
https://github.com/Tommigun1980/Xamarin.Forms.SlideView

slide slideview sliding xamarin xamarin-forms

Last synced: 29 days ago
JSON representation

A sliding view component for Xamarin.Forms

Awesome Lists containing this project

README

        

# Xamarin.Forms.SlideView
*A sliding view component for Xamarin.Forms*

![SlideView](Doc/SlideView.gif)

NuGet package available at https://www.nuget.org/packages/Xamarin.Forms.SlideView/

## Usage

Import the SlideView assembly:
```xaml
xmlns:slideview="clr-namespace:Xamarin.Forms.SlideView;assembly=Xamarin.Forms.SlideView"
```

Place it in your view, and define contents for Pane0 (first pane), and Pane1 (pane that slides in):
```xaml







```

To toggle between the panes, set the PanePriority property on your SlideView to SlideView.SlideViewPanePriority.Pane0 or SlideView.SlideViewPanePriority.Pane1:
```c#
using Xamarin.Forms.SlideView;

// ...

this.mySlideView.PanePriority = SlideView.SlideViewPanePriority.Pane0; // displays first pane
this.mySlideView.PanePriority = SlideView.SlideViewPanePriority.Pane1; // displays second pane
```

See [SlideView.xaml.cs](Xamarin.Forms.SlideView/SlideView.xaml.cs) for all bindable properties.