public KryptonBorderEdge()
{
// The label cannot take the focus
SetStyle(ControlStyles.Selectable, false);
// Set default label style
_orientation = Orientation.Horizontal;
// Create the palette storage
_borderRedirect = new PaletteBorderInheritRedirect(Redirector, PaletteBorderStyle.ControlClient);
_stateCommon = new PaletteBorderEdgeRedirect(_borderRedirect, NeedPaintDelegate);
_stateDisabled = new PaletteBorderEdge(_stateCommon, NeedPaintDelegate);
_stateNormal = new PaletteBorderEdge(_stateCommon, NeedPaintDelegate);
_stateCurrent = _stateNormal;
_state = PaletteState.Normal;
// Our view contains just a simple canvas that covers entire client area
_drawPanel = new ViewDrawPanel(_stateNormal);
// Create the view manager instance
ViewManager = new ViewManager(this, _drawPanel);
// We want to be auto sized by default, but not the property default!
AutoSize = true;
AutoSizeMode = AutoSizeMode.GrowAndShrink;
}