I have purchased the toolkit, ribbon, and navigator + source, and I love the way my apps look now. You can build a pretty robust app using only Krypton components and Windows.Fom components that support ManagedRenderMode, but inevitably you have to add a "regular" component, which of course does not look the same as everything else.
Most notably, I use the DataGridView component pretty often to easily display data. When I dropped a DataGridView into my newly built Krypton GUI, it looked terrible however, since it looks nothing like the rest of the controls. Has anybody created a DataGridView component that conforms to the rest of the Krypton components, or might a Krypton DataGridView component be added to the toolkit one day?
In trying to match my GUI's DataGridView to the rest of my GUI, I've come up with the following setting and thought I'd share them in hopes that others will contribute. It doesn't look as good as the other Krypton components, but at least some of the coloring looks the same. The column headers are the biggest issue because the have a flat color background - not the nice color gradient like the other Krypton stuff. Does anybody know how to add this gradient to the Column Headers?
//Get the Global color palette
IPalette _palette = KryptonManager.CurrentGlobalPalette;
//Get Globel Separator Color
this._separatorColor = _palette.GetBorderColor1(PaletteBorderStyle.SeparatorHighProfile, PaletteState.Normal);
//Get Globel Border Color
this._clientControlColor = _palette.GetBorderColor1(PaletteBorderStyle.ControlClient, PaletteState.Normal);
//Get Panel Back Color
this._panelBackColor = _palette.GetBackColor1(PaletteBackStyle.PanelClient, PaletteState.Normal);
//Get Header Color for Column Header Background
this._cellBackColor = _palette.GetBackColor1(PaletteBackStyle.HeaderPrimary, PaletteState.Normal);
//Get Label Text Color for Column Header Text Color
this._cellForeColor = _palette.GetContentLongTextColor1(PaletteContentStyle.LabelTitleControl, PaletteState.Normal);
//Get Label Font for Column Header Text/Font
this._labelFont = _palette.GetContentLongTextFont(PaletteContentStyle.LabelTitleControl, PaletteState.Normal);
//Make sure we don't inherit colors so we can customize...
this.dataGridView_ModelStats.EnableHeadersVisualStyles = false;
//Set Grid Font
this.dataGridView_ModelStats.Font = this._labelFont;
//Set Border Style
this.dataGridView_ModelStats.BorderStyle = BorderStyle.Fixed3D;
//Set DataGridVeiw Control Back Color
this.dataGridView_ModelStats.BackgroundColor = this._panelBackColor;
//Set Header Font
this.dataGridView_ModelStats.ColumnHeadersDefaultCellStyle.Font = this._labelFont;
//Set Header Fore Color and Back Color
this.dataGridView_ModelStats.ColumnHeadersDefaultCellStyle.BackColor = this._cellBackColor;
this.dataGridView_ModelStats.ColumnHeadersDefaultCellStyle.ForeColor = this._cellForeColor;
//Set Header Styling
this.dataGridView_ModelStats.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Raised;
this.dataGridView_ModelStats.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
//Set Grid Colors
this.dataGridView_ModelStats.GridColor = this._separatorColor;
this.dataGridView_ModelStats.ForeColor = this._clientControlColor;