Grid container = new Grid();Button btn = new Button();container.Children.Add(btn);btn.VerticalAlignment = VerticalAlignment.Bottom;btn.HorzontalAlignment = HorzontalAlignment.Right
是这个意思不?