Esempio n. 1
0
 public void Dismiss(bool animated)
 {
     if (OnHiddenWithoutSelection == null)
     {
         ResetOverrideRequested.Invoke(this, EventArgs.Empty);
     }
     DismissBase(animated);
 }
Esempio n. 2
0
 public void Show()
 {
     ShowBase();
     MenuView.Elevation = RequestedElevation;
     OverrideRequested.Invoke(this, () =>
     {
         Dismiss(true);
         OnHiddenWithoutSelection?.Invoke(this, EventArgs.Empty);
     });
     MOnDismissCallback = new FlyoutDismissListener(() => ResetOverrideRequested.Invoke(this, EventArgs.Empty));
 }
Esempio n. 3
0
        public void Show()
        {
            ShowBase();
            MenuView.Elevation = RequestedElevation;
            OverrideRequested.Invoke(this, () =>
            {
                Dismiss(true);
                OnHiddenWithoutSelection?.Invoke(this, EventArgs.Empty);
            });
            MOnDismissCallback = new FlyoutDismissListener(() => ResetOverrideRequested.Invoke(this, EventArgs.Empty));

            MenuView.SetPadding(0, 0, 0, 0);
            var view = MPopupView.GetChildAt(0);

            (view.LayoutParameters as ViewGroup.MarginLayoutParams).SetMargins(0, 0, 0, 0);
            //view.SetPadding(0,0,0,0);
        }