注: 以下のいずれかが True の場合プレビューは表示されません:
Imports Infragistics.Win.UltraWinToolbars Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button9.Click ' Get the gallery from the toolbars manager which will be customized Dim gallery As PopupGalleryTool = Me.UltraToolbarsManager1.Tools("PopupGalleryTool1") ' Prevent the user from resizing the gallery drop down by hiding the grab handle gallery.AllowResizeDropDown = False ' Hide the filter bar in the gallery drop down. If this is set to false, the selected filter ' can only be programmatically changed by setting SelectedGroupFilter or SelectedGroupFilterKey. gallery.ShowFilterBar = False ' Prevent the gallery preview from showing in the ribbon gallery.ShowPreviewInRibbon = False ' Use images from the UltraToolbarsManager.ImageListSmall in the gallery item gallery.UseLargeImagesInItems = False End Sub
using System.Windows.Forms; using Infragistics.Win.UltraWinToolbars; private void button1_Click( object sender, EventArgs e ) { // Get the gallery from the toolbars manager which will be customized PopupGalleryTool gallery = (PopupGalleryTool)this.ultraToolbarsManager1.Tools[ "PopupGalleryTool1" ]; // Prevent the user from resizing the gallery drop down by hiding the grab handle gallery.AllowResizeDropDown = false; // Hide the filter bar in the gallery drop down. If this is set to false, the selected filter // can only be programmatically changed by setting SelectedGroupFilter or SelectedGroupFilterKey. gallery.ShowFilterBar = false; // Prevent the gallery preview from showing in the ribbon gallery.ShowPreviewInRibbon = false; // Use images from the UltraToolbarsManager.ImageListSmall in the gallery item gallery.UseLargeImagesInItems = false; }