Version

GalleryToolItemClick Event

This topic demonstrates how to process the GalleryToolItemClick event for GalleryToolItems in a PopupGalleryTool . When an end-user clicks any of the regular Tools, the ToolClick Event can be used to handle the Click. On the other hand, if any of the GalleryToolItems that are specific to the PopupGalleryTool are being clicked, the GalleryToolItemClick event needs to be handled.

In Visual Basic:

Private Sub ultraToolbarsManager1_GalleryToolItemClick (ByVal sender As Object, _
              ByVal e As GalleryToolItemEventArgs) Handles UltraToolbarsManager1. GalleryToolItemClick
                        'Specifies the GalleryToolItem that is clicked
                       System.Diagnostics.Debug.WriteLine (e.Item.Key)
    End Sub

In C#:

private void ultraToolbarsManager1_GalleryToolItemClick (object sender, GalleryToolItemEventArgs e)
        {
            // Specifies the GalleryToolItem that is clicked
            System.Diagnostics.Debug.WriteLine (e.Item.Key);
        }