public override void AwakeFromNib() { NavigateButton.AddGestureRecognizer(new UITapGestureRecognizer(OnNavigateTapped)); HeaderCloseButton.AddGestureRecognizer(new UITapGestureRecognizer(OnCloseTapped)); }
void ReleaseDesignerOutlets() { if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (DescriptionTitleLabel != null) { DescriptionTitleLabel.Dispose(); DescriptionTitleLabel = null; } if (DialogContainer != null) { DialogContainer.Dispose(); DialogContainer = null; } if (Header != null) { Header.Dispose(); Header = null; } if (HeaderCloseButton != null) { HeaderCloseButton.Dispose(); HeaderCloseButton = null; } if (HeaderIconImage != null) { HeaderIconImage.Dispose(); HeaderIconImage = null; } if (HeaderTitleLabel != null) { HeaderTitleLabel.Dispose(); HeaderTitleLabel = null; } if (LocationLabel != null) { LocationLabel.Dispose(); LocationLabel = null; } if (LocationTitleLabel != null) { LocationTitleLabel.Dispose(); LocationTitleLabel = null; } if (NavigateButton != null) { NavigateButton.Dispose(); NavigateButton = null; } }