Beispiel #1
0
 void OnElementChanged(ElementChangedEventArgs <Page> e)
 {
     _basePage      = e.NewElement as IMenuContainerPage;
     _popupBasePage = e.NewElement as IPopupContainerPage;
     AddMenu();
     AddPopup();
 }
        public void OnElementChanged(VisualElementChangedEventArgs e)
        {
            _basePage      = e.NewElement as IMenuContainerPage;
            _popupBasePage = e.NewElement as IPopupContainerPage;

            ScreenSizeHelper.ScreenHeight = UIScreen.MainScreen.Bounds.Height;
            ScreenSizeHelper.ScreenWidth  = UIScreen.MainScreen.Bounds.Width;

            LayoutMenu();
            LayoutPopup();
        }
Beispiel #3
0
        void OnElementChanged(ElementChangedEventArgs <Xamarin.Forms.Page> e)
        {
            _basePage = e.NewElement as IMenuContainerPage;
            e.NewElement.Disappearing += NewElement_Disappearing;
            e.NewElement.Appearing    += NewElement_Appearing;
            _popupBasePage             = e.NewElement as IPopupContainerPage;
            FindRootCanvas(Windows.UI.Xaml.Window.Current.Content);

            ScreenSizeHelper.ScreenHeight = ApplicationView.GetForCurrentView().VisibleBounds.Height;
            ScreenSizeHelper.ScreenWidth  = ApplicationView.GetForCurrentView().VisibleBounds.Width;

            LayoutMenu();
            LayoutPopup();
        }
 void OnElementChanged(ElementChangedEventArgs<Page> e)
 {
     _basePage = e.NewElement as IMenuContainerPage;
     AddMenu ();
 }
 public void OnElementChanged(VisualElementChangedEventArgs e)
 {
     _basePage = e.NewElement as IMenuContainerPage;
 }
Beispiel #6
0
 public AnimatorListener(IDialogDrawer dragGesture, bool isShow, IMenuContainerPage basePage)
 {
     _dragGesture = dragGesture;
     _isShow      = isShow;
     _basePage    = basePage;
 }