wp后台代码添加对grid分行分列

mostQuickGrid.RowDefinitions.Add(new RowDefinition{Height = new GridLength(1, GridUnitType.Star)});
mostQuickGrid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(200, GridUnitType.Pixel)});
Grid.SetRow(QuickSpanel, 0);
Grid.SetRow(NaviPathMap, 1);

 

mostQuickGrid.ColumnDefinitions.Add(new ColumnDefinition{Width = new GridLength(1, GridUnitType.Star)});
mostQuickGrid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(200, GridUnitType.Pixel) });
Grid.SetColumn(QuickSpanel, 0);
Grid.SetColumn(NaviPathMap, 1);

posted @ 2012-11-20 20:44  藏这儿  阅读(578)  评论(0编辑  收藏  举报