public override void ViewDidLoad() { base.ViewDidLoad(); // add gesture handler directly var panCommand = new RelayCommand <UIPanGestureRecognizer>(_ => HighlightView(PanViewContainer)); PanViewContainer.Pan().SetCommand(panCommand); }
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; } }