Esempio n. 1
0
        private async void PropertiedPopupClicked(object sender, EventArgs e)
        {
            var propertiedPopup = new PropertiesPopup();

            propertiedPopup.Animation       = Animations[AnimationPicker.SelectedIndex];
            propertiedPopup.BackgroundColor = Color.FromRgba(0, 0, 0, TransparencySlider.Value);
            propertiedPopup.CloseWhenBackgroundIsClicked = CloseOnTapSwitch.IsToggled;
            propertiedPopup.HasSystemPadding             = SystemPaddingSwitch.IsToggled;

            await PopupNavigation.PushAsync(propertiedPopup);
        }
Esempio n. 2
0
        private async void CustomizedAnimationClicked(object sender, EventArgs e)
        {
            var propertiedPopup = new PropertiesPopup();

            var scaleAnimation = new ScaleAnimation
            {
                PositionIn             = MoveAnimationOptions.Top,
                PositionOut            = MoveAnimationOptions.Bottom,
                ScaleIn                = 1.2,
                ScaleOut               = 0.8,
                DurationIn             = 400,
                DurationOut            = 800,
                EasingIn               = Easing.BounceIn,
                EasingOut              = Easing.CubicOut,
                HasBackgroundAnimation = false
            };

            propertiedPopup.Animation = scaleAnimation;
            await PopupNavigation.PushAsync(propertiedPopup);
        }