Imports Infragistics.Win Imports System.Diagnostics Private Sub PrintElementsFromPoint(ByVal p As Point) Dim element As UIElement = Me.ultraProgressBar1.UIElement.ElementFromPoint(p) While (Not element Is Nothing) Debug.WriteLine(element.GetType().ToString()) Debug.Indent() element = element.Parent End While Debug.IndentLevel = 0 End Sub
using Infragistics.Win; using System.Diagnostics; private void PrintElementsFromPoint(Point p) { UIElement element = this.ultraProgressBar1.UIElement.ElementFromPoint(p); while(null != element) { Debug.WriteLine(element.GetType().ToString()); Debug.Indent(); element = element.Parent; } Debug.IndentLevel = 0; }