internal void setLayer(BaseLayer layer) { MyParent = layer; }
/// <summary> /// 增加层 /// </summary> /// <param name="layer">层对象</param> /// <param name="zindex">Z轴坐标</param> public void AddLayer(BaseLayer layer, int zindex) { layer.setZIndex(zindex); layers.Add(layer); rootCanvas.Children.Add(layer); }