Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created January 26, 2018 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/5dd13d818ce8bde45cd991d719175cc8 to your computer and use it in GitHub Desktop.
Save juucustodio/5dd13d818ce8bde45cd991d719175cc8 to your computer and use it in GitHub Desktop.
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();
PageDown.TranslationY = 1000;
}
async void UpBlue_Tapped(object sender, System.EventArgs e)
{
await PageDown.TranslateTo(0, 0, 500, Easing.SinIn);
}
async void DownWhite_Tapped(object sender, System.EventArgs e)
{
await PageDown.TranslateTo(0, Page.Height, 500, Easing.SinIn);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment