private void didSwipe(UISwipeGestureRecognizer uISwipeGesture) { if (uISwipeGesture == swipeUp) { // Show panel UpArrowBtn.SetBackgroundImage(UIImage.FromBundle("sliding_icon.png"), UIControlState.Normal); ContactUsPanelBottomConstraints.Constant = 0; SlideVerticaly(ContactUsPanelView, true, false, 0.5, null); IsPopUpShown = true; } else { // Hide panel UpArrowBtn.SetBackgroundImage(UIImage.FromBundle("sliding_icon.png"), UIControlState.Normal); ContactUsPanelBottomConstraints.Constant = -180; SlideVerticaly(ContactUsPanelView, true, true, 0.5, null); IsPopUpShown = false; } }
//partial void btnMainQA_TouchUpInside(UIButton sender) //{ // VIewMainView.Hidden = false; // HighContactUs.Hidden = true; // HighQA.Hidden = false; // ViewContactDetails.Hidden = true; // ViewFAQ.Hidden = false; //} //partial void BtnMainContactUs_TouchUpInside(UIButton sender) //{ // VIewMainView.Hidden = false; // HighQA.Hidden = true; // HighContactUs.Hidden = false; // ViewContactDetails.Hidden = false; // ViewFAQ.Hidden = true; //} //partial void BtnDial_TouchUpInside(UIButton sender) //{ // try // { // global::Xamarin.Forms.Forms.Init(); // Device.OpenUri(new Uri(String.Format("tel:{0}", "+18666576642"))); // } // catch (ArgumentNullException Ex) // { // // Number was null or white space // } //} //partial void BtnMail_TouchUpInside(UIButton sender) //{ // global::Xamarin.Forms.Forms.Init(); // var address = "*****@*****.**"; // Device.OpenUri(new Uri($"mailto:{ address}?subject=Feedback&body=A message for you consideration." + "%0D%0A" + //line break // "")); //} //partial void BtnFAQ_TouchUpInside(UIButton sender) //{ // HighContactUs.Hidden = true; // HighQA.Hidden = false; // ViewContactDetails.Hidden = true; // ViewFAQ.Hidden = false; //} //partial void BtnMailDial_TouchUpInside(UIButton sender) //{ // HighQA.Hidden = true; // HighContactUs.Hidden = false; // ViewContactDetails.Hidden = false; // ViewFAQ.Hidden = true; //} //partial void DownArrow_TouchUpInside(UIButton sender) //{ // VIewMainView.Hidden = true; //} //partial void UpArrow_TouchUpInside(UIButton sender) //{ // VIewMainView.Hidden = false; //} partial void UpArrowBtn_TouchUpInside(UIButton sender) { if (!IsPopUpShown) { UpArrowBtn.SetBackgroundImage(UIImage.FromBundle("sliding_icon.png"), UIControlState.Normal); ContactUsPanelBottomConstraints.Constant = 0; SlideVerticaly(ContactUsPanelView, true, false, 0.5, null); IsPopUpShown = true; } else { UpArrowBtn.SetBackgroundImage(UIImage.FromBundle("sliding_icon.png"), UIControlState.Normal); ContactUsPanelBottomConstraints.Constant = -180; SlideVerticaly(ContactUsPanelView, true, true, 0.5, null); IsPopUpShown = false; } //this.ContactUsPanelView.SetNeedsUpdateConstraints(); }