Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Rg.Plugins.Popup - Move animation not working

$
0
0

Hello,

I want to create a simple popup sliding from the bottom of the screen using Rg.Plugins.Popup. Here is my code for the popup page:

<?xml version="1.0" encoding="utf-8" ?>
<rgPages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:rgPages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
             xmlns:rgAnimations="clr-namespace:Rg.Plugins.Popup.Animations;assembly=Rg.Plugins.Popup"
             mc:Ignorable="d"
             x:Class="App1.MyPopupPage">
    <rgPages:PopupPage.Animation>
        <rgAnimations:MoveAnimation PositionIn="Bottom" PositionOut="Bottom"
                                    DurationIn="2400" DurationOut="2300"
                                    />
    </rgPages:PopupPage.Animation>
    <StackLayout Margin="12"
                 Padding="24"
                 BackgroundColor="White"
                 HorizontalOptions="Center"
                 VerticalOptions="Center">
        <StackLayout>
            <Label Text="Login" />
            <Entry FontSize="30"
                   Text="username@email.com" />
        </StackLayout>
        <StackLayout>
            <Label Text="Password" />
            <Entry FontSize="30"
                   IsPassword="True"
                   Text="password123" />
        </StackLayout>
        <Button BackgroundColor="DodgerBlue"
                FontSize="30"
                Text="Login"
                TextColor="White" />
    </StackLayout>
</rgPages:PopupPage>

However, this is not working. Popup is just abruptly appearing in the center of the screen. It is not sliding from the bottom. Is it a bug in this plugin or maybe I am doing something wrong?

I am working on Android. I have uploaded the full project as an attachment.

I will be very glad for any help with this problem.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>