Пример #1
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));
 }
Пример #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));

            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);
        }