Minimal Code to show a problem of Visual Studio designer