예제 #1
0
 /// <summary>
 /// Provides handling for the MouseLeftButtonUp event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     if (Interaction.AllowMouseLeftButtonUp(e))
     {
         Interaction.OnMouseLeftButtonUpBase();
         base.OnMouseLeftButtonUp(e);
     }
 }
예제 #2
0
 /// <summary>
 /// Provides handling for the MouseLeftButtonUp event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 //protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
 protected override void OnPointerReleased(PointerRoutedEventArgs e)
 {
     if (Interaction.AllowMouseLeftButtonUp(e))
     {
         Interaction.OnMouseLeftButtonUpBase();
         base.OnPointerReleased(e);
     }
 }
예제 #3
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);

                // ignore mousebutton up when we are currently editing.
                if (!IsEditing)
                {
                    // capture focus
                    Focus();

                    TryEnterEditMode();
                }
            }
        }