void HandleEventHandler(object sender, EventArgs e) { if (lblCover.Hidden == true) { lblCover.Hidden = false; lblProfile.Hidden = false; profileTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = true }; profileView.AddGestureRecognizer(profileTapGesture); coverTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = true }; CoverView.AddGestureRecognizer(coverTapGesture); } else { lblCover.Hidden = true; lblProfile.Hidden = true; profileTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = false }; profileView.AddGestureRecognizer(profileTapGesture); coverTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = false }; CoverView.AddGestureRecognizer(coverTapGesture); } }
public virtual void HideData() { if (CoverView != null) { CoverView.RemoveFromSuperview(); } }
private void DisposeGestures() { if (_mapTapGesture != null) { CoverView.RemoveGestureRecognizer(_mapTapGesture); _mapTapGesture.Dispose(); _mapTapGesture = null; } }
protected override void Dispose(bool disposing) { if (disposing) { if (CoverView != null) { CoverView.Dispose(); CoverView = null; } } base.Dispose(disposing); }
void InitializeComponents() { lblEdit.Hidden = LblCover.Hidden = true; profileTapGesture = new UITapGestureRecognizer(Opciones) { Enabled = true }; ProfileView.AddGestureRecognizer(profileTapGesture); coverTapGesture = new UITapGestureRecognizer(Opciones) { Enabled = true }; CoverView.AddGestureRecognizer(coverTapGesture); }
void ActivarFuncionalidad(bool activado) { profileTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = activado }; profileView.AddGestureRecognizer(profileTapGesture); coverTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = activado }; CoverView.AddGestureRecognizer(coverTapGesture); }
void InitializeComponents() { lblProfile.Hidden = lblCover.Hidden = true; profileTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = false }; profileView.AddGestureRecognizer(profileTapGesture); coverTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = false }; CoverView.AddGestureRecognizer(coverTapGesture); }
// override Finis #region Internal Functionality void InitializeComponents() { //Hidding components for edit lblEdit.Hidden = LblCover.Hidden = true; profileTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = true }; ProfileView.AddGestureRecognizer(profileTapGesture); coverTapGesture = new UITapGestureRecognizer(ShowOptions) { Enabled = true }; CoverView.AddGestureRecognizer(coverTapGesture); }
private void InitializeGestures() { _mapTapGesture = new UITapGestureRecognizer(() => { if (NavigateAddressesCommand != null && NavigateAddressesCommand.CanExecute(DataContext)) { NavigateAddressesCommand.Execute(DataContext); } }) { NumberOfTouchesRequired = (uint)1, NumberOfTapsRequired = (uint)1 }; CoverView.AddGestureRecognizer(_mapTapGesture); }
void ReleaseDesignerOutlets() { if (ProfileView != null) { ProfileView.Dispose(); ProfileView = null; } if (btnEdit != null) { btnEdit.Dispose(); btnEdit = null; } if (ImgProfile != null) { ImgProfile.Dispose(); ImgProfile = null; } if (lblEdit != null) { lblEdit.Dispose(); lblEdit = null; } if (CoverView != null) { CoverView.Dispose(); CoverView = null; } if (ImgCover != null) { ImgCover.Dispose(); ImgCover = null; } if (lblCover != null) { lblCover.Dispose(); lblCover = null; } }
void ReleaseDesignerOutlets() { if (btnEdit != null) { btnEdit.Dispose(); btnEdit = null; } if (CoverView != null) { CoverView.Dispose(); CoverView = null; } if (imgCover != null) { imgCover.Dispose(); imgCover = null; } if (imgProfile != null) { imgProfile.Dispose(); imgProfile = null; } if (lblCover != null) { lblCover.Dispose(); lblCover = null; } if (lblProfile != null) { lblProfile.Dispose(); lblProfile = null; } if (profileView != null) { profileView.Dispose(); profileView = null; } }
void ReleaseDesignerOutlets() { if (ContentView != null) { ContentView.Dispose(); ContentView = null; } if (AddressContainer != null) { AddressContainer.Dispose(); AddressContainer = null; } if (AddressHeightConstraint != null) { AddressHeightConstraint.Dispose(); AddressHeightConstraint = null; } if (AddressLabel != null) { AddressLabel.Dispose(); AddressLabel = null; } if (CoverView != null) { CoverView.Dispose(); CoverView = null; } if (MapView != null) { MapView.Dispose(); MapView = null; } }