Version

ViewSettingsIcons Property

Returns the UltraListViewIconsSettings object which defines properties that are applicable when the control's View property is set to 'Icons'.
Syntax
'Declaration
 
Public ReadOnly Property ViewSettingsIcons As UltraListViewIconsSettings
public UltraListViewIconsSettings ViewSettingsIcons {get;}
Remarks

The ViewSettingsIcons property exists for organizational purposes, so that properties which apply to the 'Icons' setting of the View property can be more easily discovered.

Example
The following code sample demonstrates how the UltraListView control's ViewChanged event can be handled to receive a notification when the value of the 'View' property changes, and how this notification can be used to optimize the control's visual appearance for that particular view:

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinListView

    Private Sub ultraListView1_ViewChanged(ByVal sender As System.Object, ByVal e As EventArgs) Handles ultraListView1.ViewChanged
        Dim listView As UltraListView = CType(sender, UltraListView)

        Select Case listView.View
            Case UltraListViewStyle.Details

                listView.ViewSettingsDetails.ImageList = Me.imageList16
                listView.ViewSettingsDetails.ImageSize = New Size(16, 16)
                listView.ItemSettings.DefaultImage = Image.FromFile("Folder16.bmp")

            Case UltraListViewStyle.List

                listView.ViewSettingsList.ImageList = Me.imageList16
                listView.ViewSettingsList.ImageList = Me.imageList16
                listView.ItemSettings.DefaultImage = Image.FromFile("Folder16.bmp")

            Case UltraListViewStyle.Icons

                listView.ViewSettingsIcons.ImageList = Me.imageList32
                listView.ViewSettingsIcons.ImageList = Me.imageList32
                listView.ItemSettings.DefaultImage = Image.FromFile("Folder32.bmp")

            Case UltraListViewStyle.Tiles

                listView.ViewSettingsTiles.ImageList = Me.imageList48
                listView.ViewSettingsTiles.ImageList = Me.imageList48
                listView.ItemSettings.DefaultImage = Image.FromFile("Folder48.bmp")

            Case UltraListViewStyle.Thumbnails

                listView.ViewSettingsThumbnails.ImageList = Me.imageList48
                listView.ViewSettingsThumbnails.ImageList = Me.imageList48
                listView.ItemSettings.DefaultImage = Image.FromFile("Folder48.bmp")

        End Select

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinListView;
using System.Diagnostics;

		private void ultraListView1_ViewChanged(object sender, System.EventArgs e)
		{
			UltraListView listView = sender as UltraListView;

			switch( listView.View )
			{
				case UltraListViewStyle.Details:
				{
					listView.ViewSettingsDetails.ImageList = this.imageList16;
					listView.ViewSettingsDetails.ImageSize = new Size( 16, 16 );
					listView.ItemSettings.DefaultImage = Image.FromFile( "Folder16.bmp" );
				}
				break;

				case UltraListViewStyle.List:
				{
					listView.ViewSettingsList.ImageList = this.imageList16;
					listView.ViewSettingsList.ImageList = this.imageList16;
					listView.ItemSettings.DefaultImage = Image.FromFile( "Folder16.bmp" );
				}
				break;

				case UltraListViewStyle.Icons:
				{
					listView.ViewSettingsIcons.ImageList = this.imageList32;
					listView.ViewSettingsIcons.ImageList = this.imageList32;
					listView.ItemSettings.DefaultImage = Image.FromFile( "Folder32.bmp" );
				}
				break;

				case UltraListViewStyle.Tiles:
				{
					listView.ViewSettingsTiles.ImageList = this.imageList48;
					listView.ViewSettingsTiles.ImageList = this.imageList48;
					listView.ItemSettings.DefaultImage = Image.FromFile( "Folder48.bmp" );
				}
				break;

				case UltraListViewStyle.Thumbnails:
				{
					listView.ViewSettingsThumbnails.ImageList = this.imageList48;
					listView.ViewSettingsThumbnails.ImageList = this.imageList48;
					listView.ItemSettings.DefaultImage = Image.FromFile( "Folder48.bmp" );
				}
				break;

			}
		}
Requirements

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

See Also