상속: ScreenLayer
예제 #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);
        }
예제 #2
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);
        }