Пример #1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();
            string firstString         = "Appointment.Details.Feedback.Button".Translate();
            var    strAttributedResult = new NSMutableAttributedString();

            strAttributedResult.Append(new NSAttributedString(firstString, Fonts.GetMediumFont(14), Colors.HyperLinkButtonTextColor, underlineStyle: NSUnderlineStyle.Single));
            CancelButton.SetAttributedTitle(strAttributedResult, UIControlState.Normal);
            AppointmentDetailsView.AddGestureRecognizer(new UITapGestureRecognizer(() => AppointmentSelected?.Invoke(this, appointment)));

            AppointmentDetailsView.AddBorder(Colors.UnselectedLabelBorderColor, 14);
            CircleView.Layer.BorderWidth = 1;
            CircleView.Layer.BorderColor = Colors.UnselectedLabelBorderColor.CGColor;

            VideoCallButton.UserInteractionEnabled = true;

            if (videoCallButtonGesture == null)
            {
                videoCallButtonGesture = new UITapGestureRecognizer(VideoCallButton_Tapped);
            }
            VideoCallButton.RemoveGestureRecognizer(videoCallButtonGesture);
            VideoCallButton.AddGestureRecognizer(videoCallButtonGesture);
        }
Пример #2
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();
            AppointmentDetailsView.AddGestureRecognizer(new UITapGestureRecognizer(() => AppointmentSelected?.Invoke(this, appointment)));

            AppointmentDetailsView.AddBorder(Colors.AppointmentOtherViewBorderColor, 14);
            CircleView.Layer.BorderWidth = 1;
            CircleView.Layer.BorderColor = Colors.AppointmentOtherViewCircleBorderColor.CGColor;
        }