Inheritance: ScreenLayer
Example #1
0
        public ScreenCanvas(IToolProvider toolProvider)
        {
            _tiles   = new TileScreenLayer();
            _guides  = new GuidesLayer();
            _overlay = new OverlayScreenLayer();

            _toolProvider = toolProvider;

            HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            VerticalAlignment   = System.Windows.VerticalAlignment.Top;

            this.Children.Add(_tiles);
            this.Children.Add(_guides);
            this.Children.Add(_overlay);

            ViewModelMediator.Current.GetEvent <ZoomChangedEventArgs>().Subscribe(ZoomChanged);
        }
        public ScreenCanvas(IToolProvider toolProvider)
        {
            _tiles = new TileScreenLayer();
            _guides = new GuidesLayer();
            _overlay = new OverlayScreenLayer();

            _toolProvider = toolProvider;

            HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            VerticalAlignment = System.Windows.VerticalAlignment.Top;

            this.Children.Add(_tiles);
            this.Children.Add(_guides);
            this.Children.Add(_overlay);

            ViewModelMediator.Current.GetEvent<ZoomChangedEventArgs>().Subscribe(ZoomChanged);
        }