Created
January 26, 2018 20:53
-
-
Save juucustodio/6513821678e86fbce603203dbd759df8 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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:DemoSlidingPanel" | |
x:Class="DemoSlidingPanel.MainPage"> | |
<AbsoluteLayout VerticalOptions="FillAndExpand" x:Name="Page"> | |
<StackLayout AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" BackgroundColor="White"> | |
<Image Source="DownBlue.png" HorizontalOptions="CenterAndExpand" VerticalOptions="StartAndExpand" > | |
<Image.GestureRecognizers> | |
<TapGestureRecognizer Tapped="DownBlue_Tapped"/> | |
<PanGestureRecognizer PanUpdated="DownBlue_Tapped" /> | |
</Image.GestureRecognizers> | |
</Image> | |
</StackLayout> | |
<StackLayout x:Name="PageUp" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" | |
Orientation="Vertical" VerticalOptions="FillAndExpand" Spacing="0"> | |
<StackLayout VerticalOptions="FillAndExpand" BackgroundColor="#006df0"> | |
<Image Source="UpWhite.png" HorizontalOptions="CenterAndExpand" VerticalOptions="EndAndExpand" > | |
<Image.GestureRecognizers> | |
<TapGestureRecognizer Tapped="UpWhite_Tapped"/> | |
<PanGestureRecognizer PanUpdated="UpWhite_Tapped" /> | |
</Image.GestureRecognizers> | |
</Image> | |
</StackLayout> | |
</StackLayout> | |
</AbsoluteLayout> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment