private void InitializeLayers()
        {
            _layerControl.Zoom = 2f;

            _pointerController        = new PointerEventController(_layerControl);
            _layerControl.MouseClick += _pointerController.TargetMouseClick;

            _pointerResponder            = new LocalPointerEventResponder(this);
            _pointerController.Responder = _pointerResponder;

            _rootLayer = new GroupLayerPresenter();
            _layerControl.RootLayer = new GroupLayer(_rootLayer);
        }
Exemple #2
0
        private void InitializeLayers()
        {
            _layerControl.Zoom = 2f;

            _pointerController = new PointerEventController(_layerControl);
            _layerControl.MouseClick += _pointerController.TargetMouseClick;

            _pointerResponder = new LocalPointerEventResponder(this);
            _pointerController.Responder = _pointerResponder;

            _rootLayer = new GroupLayerPresenter();
            _layerControl.RootLayer = new GroupLayer(_rootLayer);
        }