Version

BorderStyle Property (UltraTilePanel)

Gets or sets the style of border to draw around the UltraTilePanel.
Syntax
'Declaration
 
Public Property BorderStyle As Infragistics.Win.UIElementBorderStyle
public Infragistics.Win.UIElementBorderStyle BorderStyle {get; set;}

Property Value

The style of border to draw around the UltraTilePanel.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe value assigned is not a member of the Infragistics.Win.UIElementBorderStyle enumeration.
Example
This following code demonstrates how to control the appearance of various parts of the UltraTilePanel.

Imports System.Windows.Forms
Imports Infragistics.Win
Imports Infragistics.Win.Misc

' Set the appearance of the UltraTilePanel.
Me.UltraTilePanel1.Appearance.BackColor = Color.Gray

' Set the border style around the UltraTilePanel.
Me.UltraTilePanel1.BorderStyle = Infragistics.Win.UIElementBorderStyle.Etched

' When tiles are dragged by the user, the space where the tile will be dropped should 
' have a solid red border and a light grey background.
Me.UltraTilePanel1.DropAreaAppearance.BackColor = Color.LightGray
Me.UltraTilePanel1.DropAreaAppearance.BorderColor = Color.Red
Me.UltraTilePanel1.DropAreaBorderStyle = Infragistics.Win.UIElementBorderStyle.Solid

' All tile spaces which are not occupied by tiles should have a yellow back color and 
' an inset border style.
Me.UltraTilePanel1.EmptyTileAreaAppearance.BackColor = Color.Yellow
Me.UltraTilePanel1.EmptyTileAreaBorderStyle = Infragistics.Win.UIElementBorderStyle.Inset

' Customize the appearance of the scrollbars so they show the min and max scroll buttons.
Me.UltraTilePanel1.ScrollBarLook.ShowMinMaxButtons = Infragistics.Win.DefaultableBoolean.True

' The default header back color should be light blue.
Me.UltraTilePanel1.TileSettings.HeaderAppearance.BackColor = Color.LightBlue
using System.Windows.Forms;
using Infragistics.Win;
using Infragistics.Win.Misc;

// Set the appearance of the UltraTilePanel.
this.ultraTilePanel1.Appearance.BackColor = Color.Gray;

// Set the border style around the UltraTilePanel.
this.ultraTilePanel1.BorderStyle = Infragistics.Win.UIElementBorderStyle.Etched;

// When tiles are dragged by the user, the space where the tile will be dropped should 
// have a solid red border and a light grey background.
this.ultraTilePanel1.DropAreaAppearance.BackColor = Color.LightGray;
this.ultraTilePanel1.DropAreaAppearance.BorderColor = Color.Red;
this.ultraTilePanel1.DropAreaBorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;

// All tile spaces which are not occupied by tiles should have a yellow back color and 
// an inset border style.
this.ultraTilePanel1.EmptyTileAreaAppearance.BackColor = Color.Yellow;
this.ultraTilePanel1.EmptyTileAreaBorderStyle = Infragistics.Win.UIElementBorderStyle.Inset;

// Customize the appearance of the scrollbars so they show the min and max scroll buttons.
this.ultraTilePanel1.ScrollBarLook.ShowMinMaxButtons = Infragistics.Win.DefaultableBoolean.True;

// The default header back color should be light blue.
this.ultraTilePanel1.TileSettings.HeaderAppearance.BackColor = Color.LightBlue;
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