Inheritance: RenderLayerPresenter
Ejemplo n.º 1
0
        public AnnotationRenderLayer(AnnotationLayerPresenter model)
            : base(model)
        {
            base.Mode = RenderMode.Sprite | RenderMode.Drawing;

            if (model != null) {
                model.AnnotationsCollectionChanged += ModelAnnotationsCollectionChanged;
                BindAnnotations(model.Annotations);
            }
        }
Ejemplo n.º 2
0
        private void InitializeLayerHierarchy()
        {
            _tileLayer = new TileSetLayerPresenter(_tileSet);
            _tileLayer.TileSelected += TileSelected;

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

            _rootLayer = new GroupLayerPresenter();
            _rootLayer.Layers.Add(_tileLayer);
            //_rootLayer.Layers.Add(_gridLayer);
            _rootLayer.Layers.Add(_annotLayer);
        }