Created
January 26, 2018 21:06
-
-
Save juucustodio/b8f3809087649a75746863b80d129096 to your computer and use it in GitHub Desktop.
Example of Sliding Panel in Xamarin.Forms applications - http://julianocustodio.com/sliding-panel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
PageUp.TranslationY = -1000; | |
} | |
async void UpWhite_Tapped(object sender, System.EventArgs e) | |
{ | |
await PageUp.TranslateTo(0, -Page.Height, 500, Easing.SinIn); | |
} | |
async void DownBlue_Tapped(object sender, System.EventArgs e) | |
{ | |
await PageUp.TranslateTo(0, 0, 500, Easing.SinIn); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment