private void OnLongClick(object o, LongClickEventArgs e) { if (!string.IsNullOrWhiteSpace(Title)) { Toast.MakeText(Context, Title, ToastLength.Short).Show(); } }
/// <summary> /// Invoke the command if there is one /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> private void Control_LongClick(object sender, LongClickEventArgs e) { Console.WriteLine("Invoking long click command"); var command = LongPressedEffect.GetCommand(Element); command?.Execute(LongPressedEffect.GetCommandParameter(Element)); }
/// <summary> /// Listens for long click events on tab 4 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void SettingsTabLongClickListener(object sender, LongClickEventArgs e) { if (ViewPager.CurrentItem != 4) { ViewPager.CurrentItem = 4; } Fm4.SwapSettingView(); }
private void DoLongClickAction(object sender, LongClickEventArgs obj) { var view = sender as View; if (view != null) { DoExecuteCommand(view, ItemLongClickCommand); } }
private void ViewLongClick(object sender, LongClickEventArgs args) { var element = (this.Element as AppLongTapView); if ((element.Command != null) && (element.Command.CanExecute(element.CommandParameter))) { element.Command.Execute(element.CommandParameter); } }
void OnLongClick(object sender, LongClickEventArgs e) { var view = Element as LongClickButton; if (view != null) { if (view.LongClickCommand != null) { view.LongClickCommand.Execute(null); } } }
private void HandleLongClick(object sender, LongClickEventArgs e) { var dragView = Element as CustomFloatingAddButton; if (firstTime) { originalX = GetX(); originalY = GetY(); firstTime = false; } dragView.DragStarted(); touchedDown = true; }
private void HandleLongClick(object sender, LongClickEventArgs e) { DraggableView dragView = Element as DraggableView; if (firstTime) { originalX = GetX(); originalY = GetY(); firstTime = false; } dragView.DragStarted(); touchedDown = true; }
private void HandleLongClick(object sender, LongClickEventArgs e) { var dragView = Element as eliteVideo; if (firstTime) { originalX = GetX(); originalY = GetY(); firstTime = false; } if (dragView.IsPopup) { dragView.DragStarted(); touchedDown = true; } }
private void Control_LongClick(object sender, LongClickEventArgs e) { if (_view != null) { _view.LongPressedHandler?.Invoke(sender, e); if (_view.LongPressedCommand?.CanExecute(_view.LongPressedCommandParameter) == true) { _view.LongPressedCommand?.Execute(_view.LongPressedCommandParameter); } if (_view.VibrateOnLongPress) { _vibrator.Vibrate(_view.LongPressVibrationDuration); } } }
private void LayoutRoot_LongClick(object sender, LongClickEventArgs e) { if (item.Id == BrowserItemFragment.DUMMY) { return; } BrowserSheetFragment f = new BrowserSheetFragment(); f.Show(fragmentManager, f.Tag); f.MenuTapped += async(s, a) => { switch (a) { case BrowserSheetFragment.MenuItem.Save: switch (item.ItemType) { case GalleryItemType.Animation: await App.Locator.Transfers.DownloadsVM.StartDownload(item.Mp4); break; case GalleryItemType.Image: await App.Locator.Transfers.DownloadsVM.StartDownload(item.Link); break; } break; case BrowserSheetFragment.MenuItem.Share: Portable.Helpers.Initializer.SharingHelper.ShareItem(item); break; case BrowserSheetFragment.MenuItem.CopyLink: Portable.Helpers.Initializer.ClipboardHelper.Clip(item.Link); break; } f.Dismiss(); }; }
void LongPressGestureRecognizerImageRenderer_LongClick(Object sender, LongClickEventArgs e) { _customControl?.HandleLongPress(_customControl, new EventArgs()); }
private void HandleLongClick(object sender, LongClickEventArgs e) { ((ImageWithLongPressGesture)Element).InvokeLongPressedEvent(); }
private void OnControlLongPress(object sender, LongClickEventArgs e) { var command = CustomPressedEffect.GetCommandLongPress(Element); command?.Execute(CustomPressedEffect.GetCommandParameter(Element)); }
private void Control_LongClick(object sender, LongClickEventArgs e) { var patientInfo = Element.BindingContext; _itemholdingEffect?.ControlLongPressed(patientInfo); }
/// <summary> /// Listens for long click events on tab 2 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void FeedTabLongClickListener(object sender, LongClickEventArgs e) { ForceAppIntoStickyBackground(); //Fm2.GetSubscriptionFeed(); }
public void onLongClick(object sender, LongClickEventArgs e) { startRecording(); }
public void MyChannelLongClickListener(object sender, LongClickEventArgs e) { SwapMyChannelVideoDownloader(); }
public void HomeLongClickListener(object sender, LongClickEventArgs e) { Fm0.SwapFragView(); }
private void ImageButtonRenderer_LongClick(object sender, LongClickEventArgs e) { _element.LongPressCommand?.Execute(null); }
void HandleLongClick(object sender, LongClickEventArgs e) { ExtendedFrame extendedFrame = ((ExtendedFrame)Element); extendedFrame.InvokeLongPressedEvent(extendedFrame); }
private void AudioButtonLongClick(object sender, LongClickEventArgs e) { _mReady = true; _mAudioManager.PrepareAudio(); }
private void Frame_LongClick(object sender, LongClickEventArgs e) { (sender as Android.Widget.FrameLayout).SetBackgroundColor(Android.Graphics.Color.Brown); }
private void OnLongClick(object sender, LongClickEventArgs e) { m_Input.ProcessLongPress(); }
private void HandleLongClick(object sender, LongClickEventArgs e) { _extendedLabel.LongPressCommand?.Execute(_extendedLabel); }