Not the the enum but the type which defines the enum. Unfortunately yes, I tried doing it dynamically as it is done for the properties but registering a type requires you to use typename which is a const char * on the template ("StabilizationDesired" on the line above) and I can't think of a way to get that from an instance of that type.