ComponentOne DashboardLayout for WinForms
Styles Property

C1.Win.Layout Namespace > C1DashboardLayout Class : Styles Property
Gets C1.Win.Layout.Styles.DashboardTheme C1DashboardLayout styles.
Syntax
'Declaration
 
Public ReadOnly Property Styles As DashboardTheme
public DashboardTheme Styles {get;}
Remarks
This property is of DashboardTheme type. DashboardTheme is a class which provides properties to style the DashboardLayout control and its elements i.e. the ItemConatiner and its header.
Example
//styling the dashboard
dashboardTheme.Common.Margins = new C1.Framework.Thickness(30,30,30,30);
dashboardTheme.Common.Padding = new C1.Framework.Thickness(20,20,20,20);
dashboardTheme.Common.BackColor = Color.Red; 
//styling the item container
DashboardTheme dashboardTheme = c1DashboardLayout1.Styles;
dashboardTheme.ItemContainer.BackColor = Color.Orange;       
dashboardTheme.ItemContainer.PlaceHolderColor = Color.LightBlue;
dashboardTheme.ItemContainer.ToolIcon =Image.FromFile(@"C:\ToolIcon.png");
dashboardTheme.ItemContainer.ToolIconColor = Color.White;
           
//styling the header            
dashboardTheme.ContainerHeader.BackColor = Color.Yellow;
dashboardTheme.ContainerHeader.ForeColor = Color.Green; 
See Also

Reference

C1DashboardLayout Class
C1DashboardLayout Members