Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of Sliding Panel in Xamarin.Forms applications - http://julianocustodio.com/sliding-panel
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace DemoSlidingPanel
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
PageLeft.TranslationX = -1000;
}
async void LeftWhite_Tapped(object sender, System.EventArgs e)
{
await PageLeft.TranslateTo(-Page.Width, 0, 500, Easing.SinIn);
}
async void RightBlue_Tapped(object sender, System.EventArgs e)
{
await PageLeft.TranslateTo(0, 0, 500, Easing.SinIn);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.