コード例 #1
0
        public ResizableElementBehavior(IHtmlEditorComponentContext editorContext)
            : base(editorContext)
        {
            _dragBufferControl         = new BehaviorControl();
            _dragBufferControl.Visible = false;

            _resizerControl = new ResizerControl();
            _resizerControl.SizerModeChanged += new SizerModeEventHandler(resizerControl_SizerModeChanged);
            _resizerControl.Resized          += new EventHandler(resizerControl_Resized);
            _resizerControl.Visible           = false;

            Controls.Add(_dragBufferControl);
            Controls.Add(_resizerControl);

            _dragDropController = new SmartContentDragAndDropSource(editorContext);
        }
コード例 #2
0
        public ResizableElementBehavior(IHtmlEditorComponentContext editorContext)
            : base(editorContext)
        {
            _dragBufferControl = new BehaviorControl();
            _dragBufferControl.Visible = false;

            _resizerControl = new ResizerControl();
            _resizerControl.SizerModeChanged += new SizerModeEventHandler(resizerControl_SizerModeChanged);
            _resizerControl.Resized += new EventHandler(resizerControl_Resized);
            _resizerControl.Visible = false;

            Controls.Add(_dragBufferControl);
            Controls.Add(_resizerControl);

            _dragDropController = new SmartContentDragAndDropSource(editorContext);

        }