示例#1
0
        /// <summary>
        /// Invoked when an unhandled <strong>Mouse.MouseLeave</strong> attached event is raised on
        /// this element. Implement this method to add class handling for this event.
        /// </summary>
        /// <param name="e">
        /// The <see cref="MouseEventArgs"/> that contains the event data.
        /// </param>
        protected override void OnMouseLeave(MouseEventArgs e)
        {
            _hoverTimer.Stop();
            AutoHideBar?.TabLeave(this);

            base.OnMouseLeave(e);
            UpdateVisualStates(true);
        }
示例#2
0
 /// <summary>
 /// Raises the <see cref="UIElement.LostFocus"/> routed event by using the event data that
 /// is provided.
 /// </summary>
 /// <param name="e">
 /// A <see cref="RoutedEventArgs"/> that contains event data. This event data must contain
 /// the identifier for the <see cref="UIElement.LostFocus"/> event.
 /// </param>
 protected override void OnLostFocus(RoutedEventArgs e)
 {
     AutoHideBar?.TabLeave(this);
     base.OnLostFocus(e);
 }