ScLayer CreateItemControlFieldTest(ScMgr scmgr, ColumnSetting columnSetting) { ScLabel label = new ScLabel(scmgr); label.Dock = ScDockStyle.Fill; label.ForeFont = new D2DFont("微软雅黑", 17, SharpDX.DirectWrite.FontWeight.Bold); label.ForeColor = Color.FromArgb(255, 58, 166, 254); return(label); }
ScLayer CreateHeaderControlFieldTest(ScMgr scmgr, ColumnSetting columnSetting) { ScLabel label = new ScLabel(scmgr); label.Dock = ScDockStyle.Fill; label.ForeFont = new D2DFont("微软雅黑", 17, SharpDX.DirectWrite.FontWeight.Bold); if (!columnSetting.columnBaseInfo.isHideName) { label.Text = columnSetting.columnBaseInfo.displayName; } return(label); }
private ScLayer GridView_CreateHeaderTitleEvent(ScMgr scmgr) { ScLabel headerLabel = new ScLabel(scmgr); headerLabel.Name = "Title"; headerLabel.Dock = ScDockStyle.Fill; headerLabel.Text = "订单列表"; headerLabel.TextPadding = new Margin(20, 0, 0, 0); headerLabel.ForeFont = new D2DFont("微软雅黑", 35, SharpDX.DirectWrite.FontWeight.Bold); headerLabel.Alignment = TextAlignment.Leading; headerLabel.BackgroundColor = Color.FromArgb(100, 255, 0, 0); return(headerLabel); }
void DisplayItem(ScLayer columnItem, int dataRowIdx) { ScLabel label = (ScLabel)columnItem; if (label == null) { return; } if (dataRowIdx % 2 == 0) { label.ForeColor = Color.FromArgb(255, 0, 0, 0); label.ForeFont = new D2DFont("微软雅黑", 12, SharpDX.DirectWrite.FontWeight.Regular); } else { label.ForeColor = Color.FromArgb(255, 0, 0, 255); label.ForeFont = new D2DFont("微软雅黑", 17, SharpDX.DirectWrite.FontWeight.Bold); } label.Text = testDatalistFront[dataRowIdx].test; label.Value = label.Text; }