protected override void DrawItemBackgroundOn(Gdi gMem, NativeItemData nativeItem, Rectangle rItem, int nItem, bool isSelected) { //var item = (NativeItemDataNew)nativeItem; Color baseColor; //if (item.ItemHighlight) //{ //baseColor = Color.FromArgb(230, 230, 230); //} //else { baseColor = Color.FromArgb(255, 255, 255); } //if (isSelected) //{ //gMem.GradientFill(rItem, Color.FromArgb(214, 220, 236), baseColor, FillDirection.TopToBottom); //} //else //{ BrushGdi backGround = Gdi.CreateSolidBrush(baseColor); if (backGround != BrushGdi.Empty) { gMem.FillRect(rItem, backGround); } //} }
protected override void DrawItemBackgroundOn(Gdi gMem, NativeItemData nativeItem, Rectangle rItem, int nItem, bool isSelected) { Color baseColor; baseColor = Color.FromArgb(255, 255, 255); if (isSelected) { gMem.GradientFill(rItem, Color.FromArgb(69, 137, 219), Color.FromArgb(50, 106, 173), FillDirection.TopToBottom); } else { BrushGdi backGround = Gdi.CreateSolidBrush(baseColor); if (backGround != BrushGdi.Empty) { gMem.FillRect(rItem, backGround); } } }
protected override void DrawItemBackgroundOn(Gdi gMem, NativeItemData nativeItem, Rectangle rItem, int nItem, bool isSelected) { NativeItemData item = nativeItem; if (nItem == 0) // картинка { Color baseColor = Color.FromArgb(51, 51, 51); BrushGdi backGround = Gdi.CreateSolidBrush(baseColor); gMem.FillRect(rItem, backGround); } else if (!isSelected || nItem == 1) { Color baseColor = Color.White; BrushGdi backGround = Gdi.CreateSolidBrush(baseColor); gMem.FillRect(rItem, backGround); } else { gMem.GradientFill(rItem, Color.FromArgb(69, 137, 219), Color.FromArgb(50, 106, 173), FillDirection.TopToBottom); } }