Exemplo n.º 1
0
        private void CreatePopup()
        {
            sfPopUp = new SfPopupLayout(cont);
            sfPopUp.PopupView.AnimationMode = AnimationMode.None;
            sfPopUp.PopupView.PopupStyle.BorderThickness = 0;
            sfPopUp.PopupView.PopupStyle.BorderColor     = Android.Graphics.Color.Transparent;
            sfPopUp.PopupView.ShowFooter = false;
            sfPopUp.PopupView.ShowHeader = false;
            sfPopUp.Opened += SfPopUp_PopupOpened;
            sfPopUp.Closed += SfPopUp_PopupClosed;
            sfPopUp.SetBackgroundColor(Color.Transparent);
            sfPopUp.PopupView.SetBackgroundColor(Color.Transparent);
            sfPopUp.StaysOpen = true;
            sfPopUp.PopupView.WidthRequest  = 250;
            sfPopUp.PopupView.HeightRequest = 100;

            ImageView img = new ImageView(cont);

            img.SetImageResource(Resource.Drawable.Popup_InfoNotification);
            img.SetScaleType(ImageView.ScaleType.FitEnd);
            sfPopUp.PopupView.ContentView = img;
        }