Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar
Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button13.Click
' Display the number of items in the currently selected group. Note that
' only control styles Listbar and Toolbox have the concept of SelectedGroup.
If (Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar Or Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox) Then
If (Not Me.ultraExplorerBar1.SelectedGroup Is Nothing) Then
Debug.WriteLine(String.Format("The Selected group contains {0} Items.", Me.ultraExplorerBar1.SelectedGroup.Items.Count))
End If
End If
End Sub