public TaskItem()
: base()
{
// set control styles
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.Selectable, true);
this.TabStop = true;
this.BackColor = Color.Transparent;
// get the system theme settings
this.systemSettings = ThemeManager.GetSystemExplorerBarSettings();
this.customSettings = new TaskItemInfo();
this.customSettings.TaskItem = this;
this.customSettings.SetDefaultEmptyValues();
// preferred size
this.preferredWidth = -1;
this.preferredHeight = -1;
// unfocused item
this.focusState = FocusStates.None;
this.Cursor = Cursors.Hand;
this.textRect = new Rectangle();
this.TextAlign = ContentAlignment.TopLeft;
this.showFocusCues = false;
this.useGdiText = false;
this.InitStringFormat();
this.InitDrawTextFlags();
}