Support for Width and Height in MainWindow