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);

转载于:https://www.cnblogs.com/lutter/archive/2012/11/20/2779697.html

你可能感兴趣的:(wp后台代码添加对grid分行分列)