/// <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); } }
/// <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); } }
/// <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(); } } }