예제 #1
0
 public DesignSurface()
 {
     this.SelectionMode = SelectionMode.Multiple;
     MouseLeftButtonDown += OnMouseLeftButtonDown;
     SelectionChanged += OnSelectionChanged;
     DesignAidsProvider = new DesignAidsProvider(this);
     SelectionHandler = new SelectionHandler(this);
     CommandHandler = new DesignSurfaceCommandHandler(this, this);
 }
예제 #2
0
        public DesignSurface()
        {
            DefaultStyleKey = typeof(DesignSurface);            

            DesignAidsProvider = new DesignAidsProvider(this);
            SelectionHandler = new SelectionHandler(this);            

            PopupsDictionary = new Dictionary<IAdorner, Popup>();

            Children = new CanvasItemCollection();
            KeyDown += OnKeyDown;
            KeyUp += OnKeyUp;

            SelectionChanged += OnSelectionChanged;
        }