Skip to content

Commit

Permalink
Fix GetBetweenShowDelay NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
dipeshmsft authored and lindexi committed Dec 25, 2023
1 parent e890cc6 commit 26c6713
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,19 +484,6 @@ private void ShowToolTip(DependencyObject o, bool fromKeyboard)
SetSafeArea(_currentToolTip);
}

if (!_currentToolTip.IsOpen)
{
// open the tooltip, and finish the initialization when its popup window is available.
_currentToolTip.Opened += OnToolTipOpened;
_currentToolTip.IsOpen = true;
}
else
{
// If the tooltip is already open, initialize it now. This only happens when the
// app manages the tooltip directly.
SetSafeArea(_currentToolTip);
}

CurrentToolTipTimer = new DispatcherTimer(DispatcherPriority.Normal);
CurrentToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetShowDuration(o));
CurrentToolTipTimer.Tick += new EventHandler(OnShowDurationTimerExpired);
Expand Down

0 comments on commit 26c6713

Please sign in to comment.