/// <summary>
/// 动态添加行
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void addRow_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
bool canAdd = true;
if (canAdd)
{
//添加字段名称
TextBlock textBlock1 = new TextBlock();
textBlock1.Text = "名 称:";
textBlock1.Margin = new Thickness(0, 0, 13, 0);
textBlock1.Height = 25;
textBlock1.HorizontalAlignment = HorizontalAlignment.Right;
textBlock1.VerticalAlignment = VerticalAlignment.Bottom;
textBlock1.TextWrapping = TextWrapping.Wrap;
Grid.SetC
silverlight 在grid下面动态添加行
最新推荐文章于 2021-07-28 09:21:21 发布