How to check if i'm in run-time or design time?

后端 未结 2 1715
生来不讨喜
生来不讨喜 2021-01-05 23:47

I developed some userControl that contain some information check on the \'IsVisible\' method ( override method ).

When i using this usercontrol on some window - i se

2条回答
  •  滥情空心
    2021-01-06 00:23

    DesignerProperties.GetIsInDesignMode(this); This would return true if you are in design-time.

提交回复
热议问题