예제 #1
0
 /// <summary>
 /// Provides handling for the MouseLeftButtonDown event.
 /// </summary>
 /// <param name="e">The data for the event.</param>
 protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
 {
     if (Interaction.AllowMouseLeftButtonDown(e))
     {
         Interaction.OnMouseLeftButtonDownBase();
         base.OnMouseLeftButtonDown(e);
     }
 }
예제 #2
0
        /// <summary>
        /// Provides handling for the
        /// <see cref="E:System.Windows.UIElement.MouseLeftButtonDown" />
        /// event.
        /// </summary>
        /// <param name="e">
        /// A <see cref="T:System.Windows.Input.MouseButtonEventArgs" /> that
        /// contains the event data.
        /// </param>
        protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
        {
            if (Interaction.AllowMouseLeftButtonDown(e))
            {
                if (!e.Handled && HandleMouseButtonDown())
                {
                    e.Handled = true;
                }

                Interaction.OnMouseLeftButtonDownBase();
                base.OnMouseLeftButtonDown(e);
            }
        }