Exemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // add gesture handler directly
            var panCommand = new RelayCommand <UIPanGestureRecognizer>(_ => HighlightView(PanViewContainer));

            PanViewContainer.Pan().SetCommand(panCommand);
        }
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;
            }
        }