FormItemLabel - bad developer UX


#1

Here’s a gif of how I just struggled to figure out how to pass a label to a form item. R#/VS has no idea how to help me. The function wants a FormItemLabel, but it’s totally unclear how to give it one. The constructor is private. There’s no static function. “I’m out of options! Now what?” It may not even be clear how I figured it out in the end: there’s an implicit operator that converts strings and Controls to FormItemLabel.

Now, I like the fancyness. Using an implicit operator results in less code, which I’m in favor-of. But we need a way to make this clear-as-day to developers.


#2

I’m open to including this info in doc comments on those parameters.


#3

Yeah I think that’s the best solution.