开发者

font color to the silverlightdatgrid cell of particular column while binding

i just want to apply font color to the text of a sil开发者_Go百科verlight datgrid cell for a particular column while binding the itemsource

how can that be accomplished?


Make that column a DataGridTemplateColumn and in it's CellTemplate have the ForegroundColor set by a binding with a ValueConverter that determines the correct color. In your value converter you place the logic to choose the correct color.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜