/// <summary>
        /// Extends the frame into client area.
        /// </summary>
        public void ExtendFrameIntoClientArea()
        {
            var margin = new PInvoke.MARGIN
            {
                cxLeftWidth    = -1,
                cxRightWidth   = -1,
                cyBottomHeight = -1,
                cyTopHeight    = -1
            };

            DwmApi.DwmExtendFrameIntoClientArea(WindowHandle, ref margin);
        }
        /// <summary>
        /// Extends the frame into client area.
        /// </summary>
        private void ExtendFrameIntoClientArea()
        {
            if (!IsInitialized)
            {
                throw new InvalidOperationException("The window has not been initialized!");
            }

            var margin = new PInvoke.MARGIN
            {
                cxLeftWidth    = -1,
                cxRightWidth   = -1,
                cyBottomHeight = -1,
                cyTopHeight    = -1
            };

            DwmApi.DwmExtendFrameIntoClientArea(WindowHandle, ref margin);
        }
        public void extendFrameIntoClientArea()
        {
            //var margin = new MARGIN
            //{
            //    cxLeftWidth = this.X,
            //    cxRightWidth = this.Width,
            //    cyBottomHeight = this.Height,
            //    cyTopHeight = this.Y
            //};

            var margin = new PInvoke.MARGIN
            {
                cxLeftWidth    = -1,
                cxRightWidth   = -1,
                cyBottomHeight = -1,
                cyTopHeight    = -1
            };

            PInvoke.DwmExtendFrameIntoClientArea(WindowHandle, ref margin);
        }