public AnnotationRenderLayer(AnnotationLayerPresenter model) : base(model) { base.Mode = RenderMode.Sprite | RenderMode.Drawing; if (model != null) { model.AnnotationsCollectionChanged += ModelAnnotationsCollectionChanged; BindAnnotations(model.Annotations); } }
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); }