WPF-学习笔记 动态修改控件Margin的值
摘要:
举例说明:动态添加一个TextBox到Grid中,并设置它的Margin:TextBox text = new TextBox();t_grid.Children.Add(text);Thickness margin = new Thickness(left, top, right, bottom);text.Margin = margin; 阅读全文
posted @ 2011-12-23 16:59 共鸣 阅读(6837) 评论(0) 推荐(0) 编辑