示例#1
0
        private void InitializeLayerHierarchy()
        {
            _rootContentLayer = new GroupLayerPresenter();
            _gridLayer        = new GridLayerPresenter()
            {
                IsVisible = false,
            };

            _rootLayer = new GroupLayerPresenter();
            _rootLayer.Layers.Add(new WorkspaceLayerPresenter());
            _rootLayer.Layers.Add(_rootContentLayer);
            _rootLayer.Layers.Add(_gridLayer);
            _rootLayer.Layers.Add(new AnnotationLayerPresenter()
            {
                Annotations = _annotations,
            });
        }
示例#2
0
        private void InitializeLayerHierarchy()
        {
            _tileLayer = new TileSetLayerPresenter(_tileSet);
            _tileLayer.TileSelected += (s, e) => SelectTile(e.Tile);

            _gridLayer = new GridLayerPresenter()
            {
                GridSpacingX = _tilePool.TileWidth,
                GridSpacingY = _tilePool.TileHeight,
            };
            _annotLayer = new AnnotationLayerPresenter()
            {
                Annotations = _annotations,
            };

            _rootLayer = new GroupLayerPresenter();
            _rootLayer.Layers.Add(_tileLayer);
            _rootLayer.Layers.Add(_annotLayer);
        }
示例#3
0
 public GridRenderLayer(GridLayerPresenter model)
     : base(model)
 {
 }