How do I enable/disable controls in my blueprint details panel via C++?

I have a C++ project which creates a few blueprints in code. I have exposed some of my class properties to the engine via the UPROPERTY macro. I want to be able to enable / disable certain controls based on the state of other controls, similar to how the Collision details component enables / disabl…