How to set widget using ConstructorHelpers?

I know and I’ve tried both ways but for some reason both don’t work.