How can I dynamically size a Window?
Although it often makes sense to hard-code the initiali size of a window, if you want to dynamically size the window (often desirable when you have dynamic content inside the window) then remove the Window's Height and Width properties and set its SizeToContent property to WidthAndHeight.
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 10/23/10
Comment or report problem with topic
