Images that are smaller than this size (whether via an index from the ImageListLarge or directly from an appearance’s Image property) will be centered, larger images will be stretched.
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinExplorerBar Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button8.Click If (Not Me.ultraExplorerBar1.ImageListSmall Is Nothing) Then ' Add some images to the ImageList that supplies the small images. Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application) Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk) ' Add some images to the ImageList that supplies the large images. Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application) Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk) End If ' Set the small and large image sizes. This will determine how much space the control sets ' aside for small and large images. Me.ultraExplorerBar1.ImageSizeSmall = New Size(22, 22) Me.ultraExplorerBar1.ImageSizeLarge = New Size(42, 43) ' Set the color that chould be interperted as the transparent color. Me.ultraExplorerBar1.ImageTransparentColor = Color.Magenta End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinExplorerBar; private void button8_Click(object sender, System.EventArgs e) { if (this.ultraExplorerBar1.ImageListSmall != null) { // Add some images to the ImageList that supplies the small images. this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application); this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk); // Add some images to the ImageList that supplies the large images. this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application); this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk); } // Set the small and large image sizes. This will determine how much space the control sets // aside for small and large images. this.ultraExplorerBar1.ImageSizeSmall = new Size(22, 22); this.ultraExplorerBar1.ImageSizeLarge = new Size(42, 43); // Set the color that chould be interperted as the transparent color. this.ultraExplorerBar1.ImageTransparentColor = Color.Magenta; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2