hello,
Try something like this:
UltraStatusPanel panel = this.ultraStatusBar1.Panels[0]; UIElement element = this.ultraStatusBar1.UIElement.GetDescendant(typeof(PanelUIElement), panel); if (element != null) Debug.WriteLine(element.Rect);
This will give you the rect of the panel within the status bar control. You will probably want to call RectangleToScreen on the control to get the screen rect to show a tooltip.
always get NULL in element :-(
my code:
Infragistics.Win.UltraWinStatusBar.UltraStatusPanel panel; panel = this.StatusBar.Panels["extendedInfo"]; //panel is not null there Infragistics.Win.UIElement element = this.StatusBar.UIElement.GetDescendant(typeof(Infragistics.Win.UltraWinStatusBar.PanelUIElement), panel); if (element != null) //is always null Console.WriteLine(element.Rect);