예제 #1
0
 /// <summary>
 /// Called when the mouse cursor has hovered over the tab for a certain amount of time.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="eventArgs">
 /// The <see cref="EventArgs"/> instance containing the event data.
 /// </param>
 private void OnMouseHover(object sender, EventArgs eventArgs)
 {
     _hoverTimer.Stop();
     AutoHideBar?.TabEnter(this);
 }
예제 #2
0
 /// <summary>
 /// Invoked whenever an unhandled <see cref="UIElement.GotFocus"/> event reaches this
 /// element in its route.
 /// </summary>
 /// <param name="e">
 /// The <see cref="RoutedEventArgs"/> that contains the event data.
 /// </param>
 protected override void OnGotFocus(RoutedEventArgs e)
 {
     AutoHideBar?.TabEnter(this);
     base.OnGotFocus(e);
 }