Silverlight 在页面上动态生成控件
摘要:
publicpartialclassdynamicControl:UserControl{publicdynamicControl(){InitializeComponent();Buttonb=newButton();b.Height=23;b.Width=100;b.HorizontalAlignment=HorizontalAlignment.Left;//b.Margin=newThickness(0);b.Click+=buttonClick;b.Content=DateTime.Now;b.Tag="bbutton"+DateTime.Now.ToString( 阅读全文
posted @ 2012-08-15 14:57 CANYOUNG 阅读(1437) 评论(0) 推荐(0) 编辑