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();
        }
Exemple #2
0
 /// <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;
            }
        }
Exemple #4
0
 /// <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
 }
Exemple #5
0
        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);
Exemple #8
0
 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)
 {
 }
Exemple #12
0
 private void DropGrid_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     Log("DragCompleted");
 }
Exemple #13
0
 // 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;
 }
Exemple #15
0
 private void gview_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     viewmodel.BooksScroll = ScrollMode.Enabled;
     //   viewmodel.ShelfBrush = _shelfBrushColor;
     //  viewmodel.GridBrush = _gridBrushColor;
 }
Exemple #16
0
 void DropCompleted(object sender, DropCompletedEventArgs e)
 {
     AddEvent(nameof(DropCompleted));
 }
Exemple #17
0
 void OnDropCompleted(object sender, DropCompletedEventArgs e)
 {
     DependencyService.Get <TinyMessengerHub>().Publish(new DragEndedMessage());
 }
Exemple #18
0
 private void OnDropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     DragHelper.Remove(File);
 }
Exemple #19
0
        /// <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");
 }
Exemple #21
0
 private async void Grid_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     // Get path of file dropped
 }
Exemple #22
0
        void HandleDropCompleted(View element)
        {
            var args = new DropCompletedEventArgs();

            SendEventArgs <DragGestureRecognizer>(rec => rec.SendDropCompleted(args), element);
        }
        private void ListView_DropCompleted(UIElement sender, DropCompletedEventArgs args)
        {

        }
Exemple #24
0
 private void lstThreadList_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     updateThreadList(false);
 }
Exemple #25
0
 private void ggview_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     EnableScroll();
     _viewmodel.ShelfBrush = _shelfBrushColor;
     _viewmodel.GridBrush  = _gridBrushColor;
 }
 /// <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);
Exemple #27
0
 private void ListView_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
 }
 object IDropCompletedEventArgsResolver.OriginalSource(DropCompletedEventArgs e) => e.OriginalSource;
Exemple #29
0
 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 DropGrid_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     Log("DragCompleted");
 }
 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));
        }
 private void gview_DropCompleted(UIElement sender, DropCompletedEventArgs args)
 {
     viewmodel.BooksScroll = ScrollMode.Enabled;
      //   viewmodel.ShelfBrush = _shelfBrushColor;
       //  viewmodel.GridBrush = _gridBrushColor;
 }