Old Window/Control classes cannot see new controls?

I’ve been forced to switch my SegmentedButton instances for DesktopSegmentedButton since the analyzer won’t shut up about the segment properties being deprecated. But now ControlCount and Control(AtIndex) are completely unaware that the DesktopSegmentedButton exists. I’m guessing there’s no workaround, right? I’m guessing I’d have to switch the container to DesktopContainer, which will probably break my control array code. And probably more.

Yeah, I think I have no path forward with this. Either suffer the noisy analyzer complaining about code I have no control over, or I stop using the segmented control in this part of the UI.