WPF生成随机颜色问题..
摘要:
private void makubex() { lb = new ListBox(); for (int i = 0; i < grid.ColumnDefinitions.Count; i++) { for (int j = 0; j < grid.RowDefinitions.Count; j++) { Rectangle rect = new Rectangle(); SolidColorBrush scb = new SolidColorBrush(GetRandomColor()); lb.Items.Add(scb.ToString()); grid.Children 阅读全文
posted @ 2011-03-26 18:12 Makubex 阅读(1869) 评论(0) 推荐(0) 编辑