Esempio n. 1
0
 /// <summary>
 /// Called before the MouseLeftButtonUp event occurs.
 /// </summary>
 /// <param name="e">The data for the event.</param>
 protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     if (_interaction.AllowMouseLeftButtonUp(e))
     {
         _interaction.OnMouseLeftButtonUpBase();
         base.OnMouseLeftButtonUp(e);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Overriding the handler for the MouseLeftButtonUp event.
 /// </summary>
 /// <param name="e">MouseButtonEventArgs.</param>
 protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     if (Interaction.AllowMouseLeftButtonUp(e))
     {
         if (ClickMode != ClickMode.Hover)
         {
             StopTimer();
         }
         Interaction.OnMouseLeftButtonUpBase();
     }
 }
Esempio n. 3
0
        protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
        {
            if (IsDragging && Interaction.AllowMouseLeftButtonUp(e))
            {
                e.Handled  = true;
                IsDragging = false;
                ReleaseMouseCapture();
                RaiseDragCompleted(false);

                Interaction.OnMouseLeftButtonUpBase();
            }
        }