My application uses the Ribbon and Docking/MDI WPF libraries. In one window of my application, I have several complicated graphics. When I move the contents of the window around (panning), I notice the performance is not very good. Using the Visual Studio 2010 Profiler, I found that quite a bit of time is being spent in the ScreenTipService. It's apparent that the ScreenTipService is performing hit-testing while I'm panning inside the window. The signature of the function from the profiler output is here:
This function, which I have to guess is a MouseMove event handler, calls:
System.Windows.Media.VisualTreeHelper.HitTest(class System.Windows.Media.Visual,valuetype System.Windows.Point,bool)
However, this particular window is not using the ScreenTipService for anything. It would be nice to disable the ScreenTipService altogether for windows that don't use it. I attempted to set the ScreenTipService.ScreenTipIsEnabled to false on the window, but it didn't help. Do you have any other suggestions?