private void UploadPhoto_DropCompleted(UIElement sender, DropCompletedEventArgs args) { // track a custom event GoogleAnalytics.EasyTracker.GetTracker().SendEvent("ui_action", "upload_drop", "Upload Drop: from RecipeOnboarding", 0); photoUploadr(); }
/// <summary> /// Occurs when a drag-and-drop operation is ended. /// </summary> /// <param name="args">An <see cref="T:Windows.UI.Xaml.DropCompletedEventArgs">DropCompletedEventArgs</see> that contains the event data.</param> internal protected virtual void ProcessOnDropCompleted(DropCompletedEventArgs args) { StopTimer(); autoExpandNode = null; this.TreeGrid.AutoScroller.AutoScrolling = AutoScrollOrientation.None; CloseDragIndicators(); }
private void OnDropCompleted(object sender, DropCompletedEventArgs e) { var sl = (sender as Element).Parent.Parent as StackLayout; if (sl == SLAllColors) { SLRainbow.Background = SolidColorBrush.White; } else { SLAllColors.Background = SolidColorBrush.White; } }
/// <summary> /// Handle the event when the drop is completed /// </summary> /// <param name="sender">the object triggering the event</param> /// <param name="e">the event parameter</param> private void OnDropCompletedHandler(UIElement sender, DropCompletedEventArgs args) { try // If it's a valid move, make move and update the squares { if (_startSquare != null && _endSquare != null && _startSquare != _endSquare && _game.IsValidMove(_dragStartRow, _dragStartColumn, _dragEndRow, _dragEndColumn)) { _game.MakeMove(new Move(_game.GetSquare(_dragStartRow, _dragStartColumn), _game.GetSquare(_dragEndRow, _dragEndColumn))); Update(_dragStartRow, _dragStartColumn); Update(_dragEndRow, _dragEndColumn); ResetDragState(); } } catch (Exception ex) // Otherwise, tell the player why it's an invalid move { ShowExceptionDialog(ex); } ChechGameEnd(); // Check whether the game ends }
public void ResetHighlight(UIElement sender, DropCompletedEventArgs args) { Station1Grid.Opacity = 1; Station2Grid.Opacity = 1; Station3Grid.Opacity = 1; Station4Grid.Opacity = 1; Station5Grid.Opacity = 1; Station6Grid.Opacity = 1; Station7Grid.Opacity = 1; Station8Grid.Opacity = 1; Station9Grid.Opacity = 1; Station10Grid.Opacity = 1; Station1Grid.AllowDrop = true; Station2Grid.AllowDrop = true; Station3Grid.AllowDrop = true; Station4Grid.AllowDrop = true; Station5Grid.AllowDrop = true; Station6Grid.AllowDrop = true; Station7Grid.AllowDrop = true; Station8Grid.AllowDrop = true; Station9Grid.AllowDrop = true; Station10Grid.AllowDrop = true; }
DataPackageOperation IDropCompletedEventArgsResolver.DropResult(DropCompletedEventArgs e) => e.DropResult;
/// <summary> /// Gets a value that indicates the type of drag-and-drop operation, and whether the operation was successful. /// </summary> /// <param name="e">The requested <see cref="DropCompletedEventArgs"/>.</param> /// <returns> /// An enumeration value that indicates the type of drag-and-drop operation, and whether the operation was successful. /// </returns> public static DataPackageOperation DropResult(this DropCompletedEventArgs e) => Resolver.DropResult(e);
private void lstRTBPostList_DropCompleted(UIElement sender, DropCompletedEventArgs args) { updatePostList(false); }
private void Image_DropCompleted(UIElement sender, DropCompletedEventArgs args) { }
private void Grid_DropCompleted(UIElement sender, DropCompletedEventArgs args) { Debug.WriteLine("DropCompleted"); Debug.WriteLine(args.DropResult); }
private void C_NODE_GROUP_LIST_DropCompleted(UIElement sender, DropCompletedEventArgs args) { }
private void DropGrid_DropCompleted(UIElement sender, DropCompletedEventArgs args) { Log("DragCompleted"); }
// dragGrid2 结束 drop 时触发的事件 private void dragGrid2_DropCompleted(UIElement sender, DropCompletedEventArgs args) { lblMsg.Text += "dragGrid2_DropCompleted"; lblMsg.Text += Environment.NewLine; }
private void ggview_DropCompleted(UIElement sender, DropCompletedEventArgs args) { EnableScroll(); _viewmodel.ShelfBrush = _shelfBrushColor; _viewmodel.GridBrush = _gridBrushColor; }
private void gview_DropCompleted(UIElement sender, DropCompletedEventArgs args) { viewmodel.BooksScroll = ScrollMode.Enabled; // viewmodel.ShelfBrush = _shelfBrushColor; // viewmodel.GridBrush = _gridBrushColor; }
void DropCompleted(object sender, DropCompletedEventArgs e) { AddEvent(nameof(DropCompleted)); }
void OnDropCompleted(object sender, DropCompletedEventArgs e) { DependencyService.Get <TinyMessengerHub>().Publish(new DragEndedMessage()); }
private void OnDropCompleted(UIElement sender, DropCompletedEventArgs args) { DragHelper.Remove(File); }
/// <summary> /// Event handler for when a drop operation is completed. /// </summary> private void DragSource_DropCompleted(global::Windows.UI.Xaml.UIElement sender, DropCompletedEventArgs args) { var eventDetails = new EventDetails() { EventBackground = this.DropCompletedBrush, EventName = nameof(UIElement.DropCompleted), AvailableFormats = string.Empty, AvailableStdFormats = string.Empty, RequestedOperation = string.Empty, Timestamp = DateTimeOffset.Now.ToString("HH:mm:ss.fff") }; this.AddToDragDropEvents(eventDetails); return; }
private void Container_DropCompleted(UIElement sender, DropCompletedEventArgs args) { isDragging = false; startingPointer = null; Debug.WriteLine("DropCompleted"); }
private async void Grid_DropCompleted(UIElement sender, DropCompletedEventArgs args) { // Get path of file dropped }
void HandleDropCompleted(View element) { var args = new DropCompletedEventArgs(); SendEventArgs <DragGestureRecognizer>(rec => rec.SendDropCompleted(args), element); }
private void ListView_DropCompleted(UIElement sender, DropCompletedEventArgs args) { }
private void lstThreadList_DropCompleted(UIElement sender, DropCompletedEventArgs args) { updateThreadList(false); }
/// <summary> /// Gets a reference to the object that raised the event. /// This is often a template part of a control rather than an element that was declared in your app UI. /// </summary> /// <param name="e">The requested <see cref="DropCompletedEventArgs"/>.</param> /// <returns>The object that raised the event.</returns> public static object OriginalSource(this DropCompletedEventArgs e) => Resolver.OriginalSource(e);
object IDropCompletedEventArgsResolver.OriginalSource(DropCompletedEventArgs e) => e.OriginalSource;
private void Grid_DropCompleted(UIElement sender, DropCompletedEventArgs args) { }
private void AssociatedObject_OnDropCompleted(object sender, DropCompletedEventArgs e) { ListBox listBox = sender as ListBox; listBox.SelectedItems.Clear(); }
private void DragArea_OnDropCompleted(UIElement sender, DropCompletedEventArgs args) { VisualStateManager.GoToState(this, nameof(DragNormalState), true); }
private void ListViewOnDropCompleted(UIElement sender, DropCompletedEventArgs dropCompletedEventArgs) { _dragGroupedItems = null; }
void HandleDropCompleted(UIElement sender, Windows.UI.Xaml.DropCompletedEventArgs e) { var args = new DropCompletedEventArgs(); SendEventArgs <DragGestureRecognizer>(rec => rec.SendDropCompleted(args)); }