protected override void OnDrawItem(DrawItemEventArgs e) { if (this.Items.Count > 0) { exListBoxItem item = (exListBoxItem)this.Items[e.Index]; item.drawItem(e, this.Margin, _titleFont, _detailsFont, _fmt, this._imageSize); } }
protected override void OnDrawItem(DrawItemEventArgs e) { // prevent from error Visual Designer if (this.Items.Count > 0) { exListBoxItem item = (exListBoxItem)this.Items[e.Index]; item.drawItem(e, this.Margin, _titleFont, _detailsFont, _priceFont, _fmt, this._imageSize); } }