private void InitializeGestures() { _headerImageTapGesture = new UITapGestureRecognizer(() => { var context = new ModalViewContext( ModalViewKind.FullscreenImage, ImageBackground.ImageUrl); if (ShowHideModalViewCommand != null && ShowHideModalViewCommand.CanExecute(context)) { ShowHideModalViewCommand.Execute(context); } }) { NumberOfTouchesRequired = (uint)1, NumberOfTapsRequired = (uint)1 }; ImageBackground.AddGestureRecognizer(_headerImageTapGesture); _descriptionTapGesture = new UITapGestureRecognizer(() => { if (ExpandCollapseCommand != null && ExpandCollapseCommand.CanExecute(null)) { ExpandCollapseCommand.Execute(null); } }) { NumberOfTouchesRequired = (uint)1, NumberOfTapsRequired = (uint)1 }; DescriptionLabel.AddGestureRecognizer(_descriptionTapGesture); }