private TimelineTreeRow GetTimelineTreeRowUnderMouse() { if (this.view == null) { return((TimelineTreeRow)null); } PaletteRegistryEntry paletteRegistryEntry = this.view.DesignerContext.WindowService.PaletteRegistry["Designer_TimelinePane"]; if (paletteRegistryEntry != null && paletteRegistryEntry.IsVisible) { FrameworkElement content = paletteRegistryEntry.Content; HitTestResult hitTestResult = VisualTreeHelper.HitTest((Visual)content, Mouse.GetPosition((IInputElement)content)); if (hitTestResult != null) { return((TimelineTreeRow)ElementUtilities.GetVisualTreeAncestorOfType(hitTestResult.VisualHit, typeof(TimelineTreeRow))); } } return((TimelineTreeRow)null); }