Exemplo n.º 1
0
        protected override void DoAttachBindings()
        {
            base.DoAttachBindings();

            // add gesture handler via bindings
            Bindings.Add(TapViewContainer.Tap()
                         .Bind(_ => HighlightView(TapViewContainer)));

            Bindings.Add(SwipeViewContainer.Swipe(UISwipeGestureRecognizerDirection.Right)
                         .Bind(_ => HighlightView(SwipeViewContainer)));
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (TapViewContainer != null)
            {
                TapViewContainer.Dispose();
                TapViewContainer = null;
            }

            if (SwipeViewContainer != null)
            {
                SwipeViewContainer.Dispose();
                SwipeViewContainer = null;
            }

            if (PanViewContainer != null)
            {
                PanViewContainer.Dispose();
                PanViewContainer = null;
            }

            if (TapLabel != null)
            {
                TapLabel.Dispose();
                TapLabel = null;
            }

            if (SwipeLabel != null)
            {
                SwipeLabel.Dispose();
                SwipeLabel = null;
            }

            if (PanLabel != null)
            {
                PanLabel.Dispose();
                PanLabel = null;
            }
        }