Themes
Send Feedback

Glossary Item Box

Topic Overview

Purpose

This topic provides a conceptual overview of the supported themes available in the IGGridView™ control.

In this topic


Introduction

Theme summary

Chart themes allow you to apply a consistent, color coordinated, look and feel to your charts. Simply set the IGGridView theme property to one of the predefined themes.

In C#:

_gridView.theme = new IGGridViewLightTheme();

In Objective-C:

_gridView.theme = [[IGGridViewLightTheme alloc] init];

Theme types

The following table contains the names associated with the supported themes type and a preview of its rendering.

Theme Name

Preview

IGGridViewDarkTheme

IGGridViewLightTheme



Creating a Custom Theme – Code Example

Description

The following code defines a new IGGridViewThemeDefinition. After initializing an instance of CustomTheme, assign it to the IGGridView control’s theme property.

Code

In Objective-C:

@interface CustomTheme : NSObject <IGGridViewThemeDefinition>
@end

@implementation CustomTheme

-(UIColor *)cellBackgroundColor
{
    return [UIColor blueColor];
}
-(UIColor *)selectedCellColor
{
    return [UIColor redColor];
}

@end

In C#:


public class CustomTheme :IGGridViewThemeDefinition
{
public override UIColor CellBackgroundColor
{
get
{
return UIColor.Blue;
}
}

public override UIColor SelectedCellColor
{
get
{
return UIColor.Red;
}
}

}

Related Content

Topics

The following topic provides additional information related to this topic.

Topic

Purpose

This topic serves as a gateway to the features and functionality of the IGGridView control.