How to animate the size of a Window in WPF?
WPF’s Window object is essentially a hwnd from Win32’s perspective, and the rendering model of GDI/GDI+ is not designed or optimized for animation scenario, although Window exposes two sizing dependency property aka Height and Width which support animation, but the end result will be less desirable, because you might get tearing, flickering and jerky animation experience. In order to have a much better animation result, you could try using layered windows by setting Window.AllowsTransparency property to true and Window.WindowStyle property to WindowStyle.None, and animate the visual contents placed inside the window, because in this way, you are animating WPF content rather than its hwnd container.