Needs MainForm declarative file.