只能用于平级之间设置上下顺序
this.grid1.SetValue(Grid.ZIndexProperty, 9999);
Panel.SetZIndex(this.mapContent, 9999);
Panel.SetZIndex(this.grid1, 9999);
原文:http://www.cnblogs.com/changbaishan/p/4647697.html