Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
how to use UltraToolTipManager in WPF when using UltraWinGrid as WindowsFormsHost control?
posted

I have hosted a UltraWinGrid as a WindowsFormsHost control in my WPF app. I am
trying to use UltraToolTipManager to display a tooltip on event
ultraGridXX_MouseEnterElement. The tooltip is not displaying. I am using assembly
Infragistics2.Win.v8.3. The code in the MouseEnterElement is:

private void ultraGridXX_MouseLeaveElement(object sender, UIElementEventArgs e)
{
if (!(e.Element is CellUIElement))
{ return;}
UltraGridCell cell = e.Element.GetContext(typeof(UltraGridCell)) as UltraGridCell;
if (cell != null)
{
Infragistics.Win.UltraWinToolTip.UltraToolTipInfo tipInfo = new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo("some data", Infragistics.Win.ToolTipImage.Default, "", Infragistics.Win.DefaultableBoolean .True);

_ultraToolTipManager1.SetUltraToolTip(ultraGridXX, tipInfo);
_ultraToolTipManager1.ShowToolTip(ultraGridXX);
}
else
{  _ultraToolTipManager1.HideToolTip(); }
}

I have the same exact code in a Windows Forms app, and tooltip works beautifully. What am I missing? 

Please help!!  THANKS...

Parents Reply Children
No Data