我已经按照这个项目定制了一个任务栏通知程序:WPF 任务栏通知程序 - WPF 任务栏通知 在这个项目中,当鼠标悬停在通知程序上时,作者已经覆盖了鼠标进入事件以保持屏幕右下角的窗口位置。我认为这就是为什么当鼠标悬停在通知程序上时我无法在通知程序中显示任何项目的工具提示的原因。我使用工具提示来显示一些太长而无法显示的文本。谁能帮我解决这个问题,请?
protected override void OnMouseEnter(System.Windows.Input.MouseEventArgs e)
{
if (this.DisplayState == DisplayStates.Opened)
{
// When the user mouses over and the window is already open, it should stay open.
// Stop the timer that would have otherwise hidden it.
this.stayOpenTimer.Stop();
}
else if ((this.DisplayState == DisplayStates.Hidden) ||
(this.DisplayState == DisplayStates.Hiding))
{
// When the user mouses over and the window is hidden or hiding, it should open.
this.DisplayState = DisplayStates.Opening;
}
base.OnMouseEnter(e);
}