Gets or sets the
ScrollBarLook instance which defines the appearance of the scroll bars.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property ScrollBarLook As Infragistics.Win.UltraWinScrollBar.ScrollBarLook |
| C# | |
|---|
public Infragistics.Win.UltraWinScrollBar.ScrollBarLook ScrollBarLook {get; set;} |
Property Value
The ScrollBarLook instance which defines the appearance of the scroll bars.
Example
The following code demonstartes how to modify the appearance of the UltraPanel.
| Visual Basic | Copy Code |
|---|
Imports System.Windows.Forms
Imports Infragistics.Win
' Set the back color of the UltraPanel
Me.UltraPanel1.Appearance.BackColor = Color.Blue
' Set the border style so that a solid border is visible around the control.
Me.UltraPanel1.BorderStyle = UIElementBorderStyle.Solid
' Set the back color of all elements of the scroll bars.
Me.UltraPanel1.ScrollBarLook.Appearance.BackColor = Color.Red
' Turn off themes so the appearance of the scroll bars will always be visible.
Me.UltraPanel1.UseOsThemes = DefaultableBoolean.False
' Show the min and max buttons in each scroll bar.
Me.UltraPanel1.ScrollBarLook.ShowMinMaxButtons = DefaultableBoolean.True |
| C# | Copy Code |
|---|
using System.Windows.Forms;
using Infragistics.Win;
// Set the back color of the UltraPanel
this.ultraPanel1.Appearance.BackColor = Color.Blue;
// Set the border style so that a solid border is visible around the control.
this.ultraPanel1.BorderStyle = UIElementBorderStyle.Solid;
// Set the back color of all elements of the scroll bars.
this.ultraPanel1.ScrollBarLook.Appearance.BackColor = Color.Red;
// Turn off themes so the appearance of the scroll bars will always be visible.
this.ultraPanel1.UseOsThemes = DefaultableBoolean.False;
// Show the min and max buttons in each scroll bar.
this.ultraPanel1.ScrollBarLook.ShowMinMaxButtons = DefaultableBoolean.True; |
See Also