Component Initialization - Runtime vs. Designtime

前端 未结 1 921
难免孤独
难免孤独 2021-01-13 05:07

I have a series of visual compound components that I\'m building, which use similar / common \"connect\" methods, which fire up there internal tables, etc.

I am aut

相关标签:
1条回答
  • 2021-01-13 05:40

    I think you want to check if the csDesigning flag is present in the component's ComponentState property:

    if csDesigning in ComponentState then
      // designtime
    else
      // not designtime
    
    0 讨论(0)
提交回复
热议问题