コード例 #1
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;
        }
コード例 #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;
            }
        }