Tooltips with UserControl

Dec 14, 2009 at 4:15 PM

Hi Mikhail,

I've some problems with tooltips, the VisualTreeHelper.GetParent can't get the parent.

My app has a TabControl > MyUserControl > Grid > ChartPlotter

I think the problem is to get parent of Grid (which is a UserControl)

My code:

LiveToolTipService.SetToolTip(element, "Some tooltip"); 

element is a ViewportPolyline.

The exception occurs in  

var nameScope = NameScope.GetNameScope(parent); // LiveToolTipService - Line 185

Any idea to solve this?