예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ResizeController"/> class.
        /// </summary>
        /// <param name="resizableElement">The resizable element.</param>
        public ResizeController(IResizableElement resizableElement)
        {
            if (resizableElement == null)
                throw new ArgumentNullException("resizableElement");

            element = resizableElement;
            anchor = ResizeAnchor.None;
            ResizingArea = ResizingAreaDefaultValue;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ResizeController"/> class.
        /// </summary>
        /// <param name="resizableElement">The resizable element.</param>
        public ResizeController(IResizableElement resizableElement)
        {
            if (resizableElement == null)
            {
                throw new ArgumentNullException("resizableElement");
            }

            element      = resizableElement;
            anchor       = ResizeAnchor.None;
            ResizingArea = ResizingAreaDefaultValue;
        }