I'm using the CAB (or better the SCSF) and was looking for an outlook bar. On codeplex you can find the "SmartClientContrib-Release1.5-src", including an outlookbar (from matias woloski), but since I'm a great krypton fan, I wanted it kryptonized.... So now I'm doing just that, and I want to share it with you all.
Since I don't know about the licencing and so, I'm only publishing my own work.... So if you want to use it, first download it from codeplex and then insert my code. This is the first part, (others will follow), the headerstrip. Just copy my code in the headerstrip.cs file, and your almost done: there's no items collection (used for the labels in the title) so comment that out in the designer code of the inbox/mail example, and replace it with a title/description of the krypton header
- Code: Select all
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Diagnostics;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;
namespace SCSFContrib.CompositeUI.WinForms.Workspaces
{
[ToolboxItem(false)]
public partial class HeaderStrip : KryptonHeader
{
#region ObsoleteAttribs
//These attribs were in use with the original headerstrip
//But since the KryptonHeader does not have them, I obsoleted them
[ObsoleteAttribute]
public System.Windows.Forms.ToolStripGripStyle GripStyle { get; set; }
[ObsoleteAttribute]
public System.Windows.Forms.AutoScaleMode AutoScaleMode { get; set; }
#endregion
#region Overrides
// I've override the Dock so that the Headerstrip is always docked on the top
public override DockStyle Dock
{
get { return base.Dock; }
set { base.Dock = DockStyle.Top; }
}
// I've override the AutoSize so that the Headerstrip is always high enough
public override bool AutoSize
{
get { return base.AutoSize ; }
set { base.AutoSize = true ; }
}
#endregion
#region Constructor
public HeaderStrip()
{
this.Dock = DockStyle.Top;
this.HeaderStyle = HeaderStyle.Primary;
this.AutoSize = true;
this.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.Global;
}
#endregion
}
}
Greetz
Geert