Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一系列视觉复合组件,它们使用类似/常见的“连接”方法,可以在那里启动内部表等。
我正在自动化一些连接内容以在运行时自动连接。在组件级别,我如何判断当前状态是运行时还是设计时?
我想你想检查csDesigning标志是否存在于组件的ComponentState属性中:
csDesigning
ComponentState
if csDesigning in ComponentState then // designtime else // not designtime