public void Init(ISlideOverKitPageRendereriOS menuKit)
        {
            _menuKit      = menuKit;
            _pageRenderer = menuKit as PageRenderer;

            _menuKit.ViewDidAppearEvent            = ViewDidAppear;
            _menuKit.OnElementChangedEvent         = OnElementChanged;
            _menuKit.ViewDidLayoutSubviewsEvent    = ViewDidLayoutSubviews;
            _menuKit.ViewDidDisappearEvent         = ViewDidDisappear;
            _menuKit.ViewWillTransitionToSizeEvent = ViewWillTransitionToSize;
        }
Exemplo n.º 2
0
        public void Init(ISlideOverKitPageRendereriOS menuKit)
        {
            _menuKit = menuKit;
            _pageRenderer = menuKit as PageRenderer;

            _menuKit.ViewDidAppearEvent = ViewDidAppear;
            _menuKit.OnElementChangedEvent = OnElementChanged;
            _menuKit.ViewDidLayoutSubviewsEvent = ViewDidLayoutSubviews;
            _menuKit.ViewDidDisappearEvent = ViewDidDisappear;
            _menuKit.ViewWillTransitionToSizeEvent = ViewWillTransitionToSize;
            if (ScreenSizeHelper.ScreenHeight == 0 && ScreenSizeHelper.ScreenWidth == 0) {
                ScreenSizeHelper.ScreenHeight = UIScreen.MainScreen.Bounds.Height;
                ScreenSizeHelper.ScreenWidth = UIScreen.MainScreen.Bounds.Width;
            }
        }