예제 #1
0
        protected override bool OnBackButtonPressed()
        {
            var model = (TicketDetailsPageModel)BindingContext;

            if (model.ShouldShowClock)
            {
                model.OnCloseTimePickerTapped.Execute(null);
                return(true);
            }
            else if (model.WorkOrderActionSheetIsVisible || model.EventActionSheetIsVisible ||
                     model.ReplyBoxIsVisible)
            {
                model.OnCloseReplyBubbleTapped.Execute(null);
                ReplyEditor.Unfocus();
                return(true);
            }
            else if (model.PopContentView != null)
            {
                model.OnHideDetailsTapped.Execute(null);
                return(true);
            }
            else
            {
                base.OnBackButtonPressed();
                return(false);
            }
        }
예제 #2
0
 void Handle_Clicked(object sender, System.EventArgs e)
 {
     ((TicketDetailsPageModel)BindingContext).OnReplyLabelTapped.Execute(null);
     ReplyBox.HeightRequest = pageHeight * 0.65;
     MyScrollView.VerticalScrollBarVisibility = ScrollBarVisibility.Always;
     WasFocused = true;
     ReplyEditor.Focus();
 }
예제 #3
0
 void Handle_Tapped(object sender, System.EventArgs e)
 {
     ReplyEditor.Focus();
 }